Why do we introduced server_formatting_block_list
?
#1485
-
Hi, I just learned about this distribution and it does several things that I normally do with my setup so I'm interested in the project. One thing I noticed immediately was that clangd was using a different format on save than what was provided in my .clang-format file, which lead me to learn about Just for reference is there any reason why clangd formatting is disabled by default? I'm interested in the rationale here as I have used it for years and would stop using it if there was something better available. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @Kraust , Also some language servers don't have builtin formatter, it become confusing when trying to debug formatting issues, it might need following steps:
But with our current setup, we just need to check the formatter config in Of course for advanced users like u, we still provide the flexibility to enable Hope this answered your questions! 😊 |
Beta Was this translation helpful? Give feedback.
Hi @Kraust ,
Actually there's there isn't a technical reason why we block
server_formatting
. It's just easier management for the linter/formatters. Since we use none-ls.nvim as our "formatting language server" (it's registry itself as a fake language server), previously null-ls.nvim, it will be less confusing for ppl to configure their linter/formatters in only one place, which isnone-ls.nvim
's config file.Also some language servers don't have builtin formatter, it become confusing when trying to debug formatting issues, it might need following steps: