mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-12-23 13:54:54 +01:00
fix: toggle can be run even if disconnected
This commit is contained in:
parent
85f5a634b8
commit
e47d7317c4
1 changed files with 4 additions and 4 deletions
|
@ -19,6 +19,10 @@ end
|
|||
|
||||
-- always available
|
||||
local base_actions = {
|
||||
toggle = function()
|
||||
window.toggle()
|
||||
end,
|
||||
|
||||
connect = function(host)
|
||||
client.connect(host)
|
||||
end,
|
||||
|
@ -30,10 +34,6 @@ local connected_actions = {
|
|||
print("> codemp::" .. session.client.id)
|
||||
end,
|
||||
|
||||
toggle = function()
|
||||
window.toggle()
|
||||
end,
|
||||
|
||||
join = function(ws)
|
||||
if ws == nil then error("missing workspace name") end
|
||||
workspace.join(ws)
|
||||
|
|
Loading…
Reference in a new issue