In neovim 0.8, I find that vim.lsp.buf.formatting is deprecated. Use vim.lsp.buf.format { async = true } instead
.
When there are multiple clients (such as eslint and prettier) attached the buffer, how to set clients order for vim.lsp.buf.format
? (eslint format first, and then prettier)
I’m also looking for something to resolve this. I currently use eslint
lsp for linting and prettier
through NullLs for formatting. If I run them synchronously, it works find but it locks up the editor temporarily. If one of them is async
they overwrite each other.