Skip to content
Discussion options

You must be logged in to vote

Just found a thread on reddit that suggests to add the go-template as the html parser

{ command = 'prettier', args = ["--parser", "go-template", "--plugin=prettier-plugin-go-template ] }

I reduced this to the following as i have the prettier-plugin-go-template in my .prettier file and it works

[[language]]
name = "html"
language-servers = [ "tailwindcss-ls", "emmet-lsp" ]
formatter = { command = "prettier", args = [ "--parser", "go-template" ] }
auto-format = true

My concern now is that the go-template will always be used for all html files - is there a way to differentiate them please?

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@David-Else
Comment options

@overbyte
Comment options

Answer selected by overbyte
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
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #12272 on December 16, 2024 17:11.