Avoiding LSP formatting conflicts
eremid opened this issue · comments
Hello,
How can I force a lsp server on file save ? For example, formating by default with null-ls on my go files.
I tried to add this lines but without success :
https://github.com/jose-elias-alvarez/null-ls.nvim/wiki/Avoiding-LSP-formatting-conflicts
Thanks for help !
Regards
gopls format capacity should be disabled.
e.g in go.nvim, you can set lsp_document_formatting = false
In navigator, you can also disable with
disable_format_cap = { "gopls" }
Thanks.
It's not already there ?
nvim/lua/modules/lang/config.lua
Line 307 in 69b2d2d
nvim/lua/modules/lang/config.lua
Line 393 in 69b2d2d
There is a bugfix submitted for navigator. Could you check if it works?
It's ok now ! Thanks a lot.