mirror of
https://codeberg.org/Mo8it/dotfiles.git
synced 2024-12-30 19:33:43 +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([[
|
vim.cmd([[
|
||||||
augroup LspFormatting
|
augroup LspFormatting
|
||||||
autocmd! * <buffer>
|
autocmd! * <buffer>
|
||||||
autocmd BufWritePre <buffer> lua vim.lsp.buf.formatting_sync()
|
autocmd BufWritePre <buffer> lua vim.lsp.buf.formatting_sync(nil, 10000)
|
||||||
augroup END
|
augroup END
|
||||||
]])
|
]])
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue