mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-28 19:50:09 +02:00
fix(lsp): properly get buffer for dynamic capabilities (#3315)
This commit is contained in:
parent
0f6ff53ce3
commit
07a137199c
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ function M.setup()
|
|||
local ret = register_capability(err, res, ctx)
|
||||
local client = vim.lsp.get_client_by_id(ctx.client_id)
|
||||
if client then
|
||||
for buffer in ipairs(client.attached_buffers) do
|
||||
for buffer in pairs(client.attached_buffers) do
|
||||
vim.api.nvim_exec_autocmds("User", {
|
||||
pattern = "LspDynamicCapability",
|
||||
data = { client_id = client.id, buffer = buffer },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue