1
0
Fork 0
mirror of https://codeberg.org/Mo8it/dotfiles.git synced 2024-12-29 05:03:40 +00:00

Increase formatter timeout to 10sec

This commit is contained in:
Mo8it 2022-04-04 17:56:06 +02:00
parent 0f439cfe4b
commit 33e5c00e8b

View file

@ -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