mirror of
https://github.com/folke/snacks.nvim
synced 2025-12-23 08:47:57 +00:00
fix(lsp): check lsp handlers after LspAttach, since attached_buffers won't have been set
This commit is contained in:
parent
bd3c1a0714
commit
1861b0a8ea
1 changed files with 3 additions and 1 deletions
|
|
@ -69,7 +69,9 @@ local function setup()
|
|||
vim.api.nvim_create_autocmd("LspAttach", {
|
||||
group = vim.api.nvim_create_augroup("snacks.lsp.on_attach", { clear = true }),
|
||||
callback = function(ev)
|
||||
_handle({ id = ev.data.client_id, buffer = ev.buf })
|
||||
vim.schedule(function()
|
||||
_handle({ id = ev.data.client_id, buffer = ev.buf })
|
||||
end)
|
||||
end,
|
||||
})
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue