fix lag and add buffer management

This commit is contained in:
yaso 2026-07-07 15:10:01 +02:00
parent 9f86c36b7e
commit e045491ec1
8 changed files with 121 additions and 24 deletions

View file

@ -88,7 +88,7 @@ return {
vim.api.nvim_create_autocmd("BufWritePre", {
buffer = ev.buf,
callback = function()
vim.lsp.buf.format({ async = false })
vim.lsp.buf.format({ bufnr = ev.buf, async = false })
end,
})
end,