Skip to content
Discussion options

You must be logged in to vote

You could use Prettier to format instead, if you don't like the defaults you can probably change them:

[[language]]
name = "html"
formatter = { command = 'prettier', args = ["--parser", "html"] }

You can probably change the vscode-html-language-server using config, I had a quick look to try and find the commands but they are not properly documented. Most people are using them inside VS Code so it is a bit niche to call them manually in a Helix config. A good place to look for config info is in the Neovim setups, for example: https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#html . This says you could turn off the built in formatting with provideFormatter =…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by superDuperCyberTechno
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants