fix(lsp): auto format, sane default for timeout
This commit is contained in:
parent
9366f6072c
commit
ae48287cf7
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ function M.on_attach(client, bufnr)
|
||||||
else
|
else
|
||||||
format_filetypes = '*'
|
format_filetypes = '*'
|
||||||
end
|
end
|
||||||
vim.cmd(string.format('autocmd BufWritePre %s lua vim.lsp.buf.formatting_sync(nil, 1000)', format_filetypes))
|
vim.cmd(string.format('autocmd BufWritePre %s lua vim.lsp.buf.formatting_sync(nil, 200)', format_filetypes))
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
client.resolved_capabilities.document_formatting = false
|
client.resolved_capabilities.document_formatting = false
|
||||||
|
|
Loading…
Add table
Reference in a new issue