add persistence
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user