Open kamalkech opened 2 years ago
Maybe you can try vim.lsp.buf.formatting_seq_sync() instead of vim.lsp.buf.formatting_sync().
I personally turned of sumneok_lua
's document_formatting capabilities just like chris did with the tsserver
and let stylua
do all the work.
However, If you have multiple and every one does something, I think you can do as @Alexis12119 suggested.
Maybe you can try vim.lsp.buf.formatting_seq_sync() instead of vim.lsp.buf.formatting_sync().
you can :help vim.lsp.buf.formatting_seq_sync()
to see what it does.
that my config of null-ls:
every time save file i should the correct server (capture bellow), question how can i save and nvim know the correct server, mean i don't need every time choose manually the server ??