diff --git a/lua/codemp/buffers.lua b/lua/codemp/buffers.lua index 58d0a9f..8f83527 100644 --- a/lua/codemp/buffers.lua +++ b/lua/codemp/buffers.lua @@ -137,7 +137,6 @@ local function create(buffer) session.workspace:create_buffer(buffer):await() end - return { sync = sync, attach = attach, diff --git a/lua/codemp/command.lua b/lua/codemp/command.lua index 45d1819..de1b208 100644 --- a/lua/codemp/command.lua +++ b/lua/codemp/command.lua @@ -96,7 +96,8 @@ local joined_actions = { delete = function(path) if path == nil then error("missing buffer name") end - buffers.delete(path) + session.workspace:delete_buffer(path):await() + print(" xx deleted buffer " .. path) end, buffers = function()