diff --git a/lua/codemp/neo-tree/commands.lua b/lua/codemp/neo-tree/commands.lua index 2fe928a..c0fb35d 100644 --- a/lua/codemp/neo-tree/commands.lua +++ b/lua/codemp/neo-tree/commands.lua @@ -133,7 +133,7 @@ M.add = function(state, path, extra) vim.ui.input({ prompt = "new workspace name" }, function(input) if input == nil or input == "" then return end session.client:create_workspace(input):await() - manager.refresh("codemp") + vim.schedule(function () require('codemp.workspace').list() end) end) end elseif selected.type == "workspace" then