From 1c68e6ec98cfa81f35ab0351300815bec3739b77 Mon Sep 17 00:00:00 2001 From: alemi Date: Sun, 1 Sep 2024 03:07:05 +0200 Subject: [PATCH] fix: commands --- src/command.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/command.lua b/src/command.lua index 161a2a3..998fb00 100644 --- a/src/command.lua +++ b/src/command.lua @@ -19,8 +19,8 @@ end -- always available local base_actions = { - connect = function(host, bang) - client.connect(host, bang) + connect = function(host) + client.connect(host) end, } @@ -42,7 +42,7 @@ local connected_actions = { start = function(ws) if ws == nil then error("missing workspace name") end session.client:create_workspace(ws):await() - vim.schedule(function () workspace.list(session.client) end) + vim.schedule(function () workspace.list() end) print(" <> created workspace " .. ws) end, @@ -89,7 +89,7 @@ local joined_actions = { local buf = vim.api.nvim_get_current_buf() buffers.create(path) local content = utils.buffer.get_content(buf) - buffers.attach(path, true, content) + buffers.attach(path, buf, content) window.update() -- TODO would be nice to do automatically inside else print(" !! empty path or open a file")