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

This commit is contained in:
Folke Lemaitre 2025-10-28 00:31:50 +01:00
parent 5f86e4ac26
commit 52f30a198a
No known key found for this signature in database
GPG key ID: 9B52594D560070AB

View file

@ -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()