diff options
| author | Robert Günzler <r@gnzler.io> | 2026-02-10 12:32:48 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2026-02-10 12:41:25 +0100 |
| commit | 63feeb9f369fc6176e85c1c2d8fcc863caad1946 (patch) | |
| tree | 41cd5d2d1ec36e74e464caab722cc9b460153f04 /.config/nvim/after/ftplugin/oil.lua | |
| parent | 5bd0a4aca65ecb9818ef1285982d160b6b6ff665 (diff) | |
start new
Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to '.config/nvim/after/ftplugin/oil.lua')
| -rw-r--r-- | .config/nvim/after/ftplugin/oil.lua | 25 |
1 files changed, 25 insertions, 0 deletions
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') |