mirror of
https://github.com/folke/snacks.nvim
synced 2025-12-23 08:47:57 +00:00
fix(util.lsp): Snacks.util.lsp.on() should trigger for each lsp client per buffer
Some checks are pending
CI / ci (push) Waiting to run
Some checks are pending
CI / ci (push) Waiting to run
This commit is contained in:
parent
5f86e4ac26
commit
52f30a198a
1 changed files with 3 additions and 2 deletions
|
|
@ -35,8 +35,9 @@ local function _handle(filter)
|
|||
local clients = vim.lsp.get_clients(f)
|
||||
for _, client in ipairs(clients) do
|
||||
for buf in pairs(client.attached_buffers) do
|
||||
if not state.done[buf] then
|
||||
state.done[buf] = true
|
||||
local key = ("%d:%d"):format(client.id, buf)
|
||||
if not state.done[key] then
|
||||
state.done[key] = true
|
||||
local ok, err = pcall(state.cb, buf, client)
|
||||
if not ok then
|
||||
vim.schedule(function()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue