mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-11-22 07:24:52 +01:00
feat: 'a' on title refreshes workspace list
This commit is contained in:
parent
f875741165
commit
b561802109
1 changed files with 7 additions and 1 deletions
|
@ -22,9 +22,15 @@ M.refresh = require("neo-tree.utils").wrap(manager.refresh, "codemp")
|
||||||
M.open = function(state, path, extra)
|
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 == "entry" then return end
|
if selected.type == "entry" then return end
|
||||||
if selected.type == "root" then return toggle(selected) end
|
if selected.type == "root" then return toggle(selected) end
|
||||||
|
if selected.type == "title" then
|
||||||
|
if CODEMP.client ~= nil then
|
||||||
|
print(" :: refreshing workspace list")
|
||||||
|
ws_manager.list()
|
||||||
|
end
|
||||||
|
return
|
||||||
|
end
|
||||||
if selected.type == "button" then
|
if selected.type == "button" then
|
||||||
if selected.name == "[connect]" and CODEMP.client == nil then
|
if selected.name == "[connect]" and CODEMP.client == nil then
|
||||||
client_manager.connect()
|
client_manager.connect()
|
||||||
|
|
Loading…
Reference in a new issue