feat(lsp): tweak formatting sync timeout

This commit is contained in:
Matt Leong 2021-10-27 17:41:02 -07:00
parent 4de18981ce
commit 730e7e32c1

View file

@ -28,7 +28,7 @@ function M.on_attach(client, bufnr)
vim.cmd(([[
augroup CosmicFormat
autocmd!
autocmd BufWritePre %s lua vim.lsp.buf.formatting_sync(nil, 200)
autocmd BufWritePre %s lua vim.lsp.buf.formatting_sync(nil, 400)
augroup end
]]):format(format_filetypes))
end