mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-11-24 16:34:50 +01:00
fix: available command also refreshes ws list
This commit is contained in:
parent
b561802109
commit
7e6f2fd905
1 changed files with 4 additions and 0 deletions
|
@ -55,12 +55,16 @@ local connected_actions = {
|
||||||
end,
|
end,
|
||||||
|
|
||||||
available = function()
|
available = function()
|
||||||
|
CODEMP.available = {}
|
||||||
for _, ws in ipairs(CODEMP.client:list_workspaces(true, false):await()) do
|
for _, ws in ipairs(CODEMP.client:list_workspaces(true, false):await()) do
|
||||||
print(" ++ " .. ws)
|
print(" ++ " .. ws)
|
||||||
|
table.insert(CODEMP.available, ws)
|
||||||
end
|
end
|
||||||
for _, ws in ipairs(CODEMP.client:list_workspaces(false, true):await()) do
|
for _, ws in ipairs(CODEMP.client:list_workspaces(false, true):await()) do
|
||||||
print(" -- " .. ws)
|
print(" -- " .. ws)
|
||||||
|
table.insert(CODEMP.available, ws)
|
||||||
end
|
end
|
||||||
|
require('codemp.window').update()
|
||||||
end,
|
end,
|
||||||
|
|
||||||
invite = function(user)
|
invite = function(user)
|
||||||
|
|
Loading…
Reference in a new issue