From 63feeb9f369fc6176e85c1c2d8fcc863caad1946 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Tue, 10 Feb 2026 12:32:48 +0100 Subject: start new MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert Günzler --- .config/nvim/after/ftplugin/oil.lua | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .config/nvim/after/ftplugin/oil.lua (limited to '.config/nvim/after/ftplugin/oil.lua') diff --git a/.config/nvim/after/ftplugin/oil.lua b/.config/nvim/after/ftplugin/oil.lua new file mode 100644 index 0000000..4d1c2c4 --- /dev/null +++ b/.config/nvim/after/ftplugin/oil.lua @@ -0,0 +1,25 @@ + +local get_client = function() + local active_clients = vim.lsp.get_clients({ name = 'zk' }) + + if next(active_clients) == nil then + return + end + + for _, v in ipairs(active_clients) do + if next(v.attached_buffers) ~= nil then + print(vim.inspect(v)) + return v.id + end + end +end + +local client_id = get_client() +if client_id == nil then + return +end + +local client = vim.lsp.get_client_by_id(client_id) +print(vim.inspect(client)) + +print('hi') -- cgit 1.4.1