Conversation
| default_format_opts = { | ||
| lsp_format = 'fallback', -- Use LSP formatting if available, otherwise use external formatters. Set to `false` to disable LSP formatting. | ||
| }, |
There was a problem hiding this comment.
If the theme of this PR is to reduce unexpected formatting on save, I think these lines should be removed.
There was a problem hiding this comment.
Ah but then the lua formatting will not work. Hmm not sure.
There was a problem hiding this comment.
Anyway, that comment is not correct. Fallback means using LSP when no other formatters are available, not prioritizing it.
See conform documentation here
There was a problem hiding this comment.
those lines were added just so you don't have to repeat it in 2 places (previously it was in 693 and 674)
|
What is the reason for switching to stylua's LSP instead of its CLI? I think it was more clear when stylua was defined in the |
|
I tried using the Stylua LSP for formatting and removing it from |
format_on_saveto a blacklistfixes #1819