mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-11-22 15:34:53 +01:00
fix: refresh workspace list after creating one
This commit is contained in:
parent
d9f4446fc9
commit
0ac25f3ee5
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ M.add = function(state, path, extra)
|
||||||
vim.ui.input({ prompt = "new workspace name" }, function(input)
|
vim.ui.input({ prompt = "new workspace name" }, function(input)
|
||||||
if input == nil or input == "" then return end
|
if input == nil or input == "" then return end
|
||||||
session.client:create_workspace(input):await()
|
session.client:create_workspace(input):await()
|
||||||
manager.refresh("codemp")
|
vim.schedule(function () require('codemp.workspace').list() end)
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
elseif selected.type == "workspace" then
|
elseif selected.type == "workspace" then
|
||||||
|
|
Loading…
Reference in a new issue