mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-11-22 07:24: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()
|
local selected = state.tree:get_node()
|
||||||
if selected.type == "spacer" then return end
|
if selected.type == "spacer" then return end
|
||||||
if selected.type == "title" 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
|
if selected.name == "[connect]" and session.client == nil then
|
||||||
client_manager.connect()
|
client_manager.connect()
|
||||||
end
|
end
|
||||||
|
|
|
@ -48,7 +48,10 @@ M.icon = function(config, node, state)
|
||||||
highlight = codemp_utils.color(node.name)
|
highlight = codemp_utils.color(node.name)
|
||||||
elseif node.type == "entry" then
|
elseif node.type == "entry" then
|
||||||
icon = "$"
|
icon = "$"
|
||||||
highlight = highlight.GIT_STAGED
|
highlight = highlights.GIT_STAGED
|
||||||
|
elseif node.type == "button" then
|
||||||
|
icon = " "
|
||||||
|
highlight = highlights.NORMAL
|
||||||
end
|
end
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -49,6 +49,7 @@ M.default_config = {
|
||||||
},
|
},
|
||||||
button = {
|
button = {
|
||||||
{ "indent" },
|
{ "indent" },
|
||||||
|
{ "icon" },
|
||||||
{ "name" },
|
{ "name" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue