HTML: conform "formatters_by_ft" not set up if lsp is enabled #1790
vnphanquang
started this conversation in
General
Replies: 1 comment 1 reply
|
That was to prevent the default LSP and formatters, which are both superhtml, to be added at the same time. That said, the condition is a bit too loose, will update it |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello there, thank you for the good work! I noticed here:
nvf/modules/plugins/languages/html.nix
Lines 117 to 123 in b05fade
...i.e, vim.languages.html.lsp.enable is
true,formatter.conform-nvim.setupOpts.formatters_by_ft.htmlis skipped.Is there a reason behind this? It threw me off since there isn't any note about this in the docs and I had expected conform to pick up the right formatter in HTMl files automatically, which wasn't the case.
As a workaround I did specify
formatters_by_ft.htmlmanually. Just wondering if there is any gotcha i'm not aware of.All reactions