mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-12-23 05:44:52 +01:00
fix(neotree): text and action
This commit is contained in:
parent
3f4414dd25
commit
dfb3f0458a
3 changed files with 7 additions and 2 deletions
|
@ -14,7 +14,8 @@ M.open = function(state, path, extra)
|
|||
local selected = state.tree:get_node()
|
||||
if selected.type == "spacer" then return end
|
||||
if selected.type == "title" then return end
|
||||
if selected.type == "root" then
|
||||
if selected.type == "root" then selected:toggle() end
|
||||
if selected.type == "button" then
|
||||
if selected.name == "[connect]" and session.client == nil then
|
||||
client_manager.connect()
|
||||
end
|
||||
|
|
|
@ -48,7 +48,10 @@ M.icon = function(config, node, state)
|
|||
highlight = codemp_utils.color(node.name)
|
||||
elseif node.type == "entry" then
|
||||
icon = "$"
|
||||
highlight = highlight.GIT_STAGED
|
||||
highlight = highlights.GIT_STAGED
|
||||
elseif node.type == "button" then
|
||||
icon = " "
|
||||
highlight = highlights.NORMAL
|
||||
end
|
||||
|
||||
return {
|
||||
|
|
|
@ -49,6 +49,7 @@ M.default_config = {
|
|||
},
|
||||
button = {
|
||||
{ "indent" },
|
||||
{ "icon" },
|
||||
{ "name" },
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue