mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-11-22 15:34:53 +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
|
-- always available
|
||||||
local base_actions = {
|
local base_actions = {
|
||||||
|
toggle = function()
|
||||||
|
window.toggle()
|
||||||
|
end,
|
||||||
|
|
||||||
connect = function(host)
|
connect = function(host)
|
||||||
client.connect(host)
|
client.connect(host)
|
||||||
end,
|
end,
|
||||||
|
@ -30,10 +34,6 @@ local connected_actions = {
|
||||||
print("> codemp::" .. session.client.id)
|
print("> codemp::" .. session.client.id)
|
||||||
end,
|
end,
|
||||||
|
|
||||||
toggle = function()
|
|
||||||
window.toggle()
|
|
||||||
end,
|
|
||||||
|
|
||||||
join = function(ws)
|
join = function(ws)
|
||||||
if ws == nil then error("missing workspace name") end
|
if ws == nil then error("missing workspace name") end
|
||||||
workspace.join(ws)
|
workspace.join(ws)
|
||||||
|
|
Loading…
Reference in a new issue