mirror of
https://codeberg.org/Mo8it/dotfiles.git
synced 2024-12-27 01:01:05 +00:00
Increase formatter timeout to 10sec
This commit is contained in:
parent
0f439cfe4b
commit
33e5c00e8b
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ local function format_on_save(client)
|
|||
vim.cmd([[
|
||||
augroup LspFormatting
|
||||
autocmd! * <buffer>
|
||||
autocmd BufWritePre <buffer> lua vim.lsp.buf.formatting_sync()
|
||||
autocmd BufWritePre <buffer> lua vim.lsp.buf.formatting_sync(nil, 10000)
|
||||
augroup END
|
||||
]])
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue