add persistence

This commit is contained in:
2026-06-15 11:46:38 -03:00
parent bef20f5363
commit b13e40e67a
4 changed files with 16 additions and 4 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ vim.api.nvim_create_autocmd("BufWritePre", {
callback = function()
for _, client in pairs(vim.lsp.get_active_clients({ bufnr = 0 })) do
if client.supports_method("textDocument/formatting") then
vim.lsp.buf.format({ async = false })
vim.lsp.buf.format({ async = true, timeout_ms=5000 })
return
end
end