fix(neotree): new icons for workspace and color for btn

This commit is contained in:
əlemi 2024-09-07 04:37:16 +02:00
parent eb6913fc39
commit f5a66f8ba7
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -31,9 +31,9 @@ M.icon = function(config, node, state)
highlight = highlights.DIRECTORY_ICON
elseif node.type == "root" then
if node:is_expanded() then
icon = "> "
icon = "| "
else
icon = "- "
icon = "> "
end
highlight = highlights.DIRECTORY_ICON
elseif node.type == "workspace" then
@ -66,9 +66,11 @@ M.name = function(config, node, state)
if node.type == "title" then
text = " :: " .. node.name .. " :: "
highlight = highlights.PREVIEW
elseif node.type == "root" or node.type == "button" then
elseif node.type == "root" then
highlight = highlights.FILTER_TERM
elseif node.type == "button" then
text = " " .. node.name .. " "
highlight = highlights.TAB_ACTIVE
highlight = highlights.FLOAT_TITLE
end
return {
text = text,