mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-11-24 08:24:53 +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,
|
||||
|
||||
available = function()
|
||||
CODEMP.available = {}
|
||||
for _, ws in ipairs(CODEMP.client:list_workspaces(true, false):await()) do
|
||||
print(" ++ " .. ws)
|
||||
table.insert(CODEMP.available, ws)
|
||||
end
|
||||
for _, ws in ipairs(CODEMP.client:list_workspaces(false, true):await()) do
|
||||
print(" -- " .. ws)
|
||||
table.insert(CODEMP.available, ws)
|
||||
end
|
||||
require('codemp.window').update()
|
||||
end,
|
||||
|
||||
invite = function(user)
|
||||
|
|
Loading…
Reference in a new issue