Skip to content

How to setup templ with html and tailwind LSPs? #9246

Answered by adamjhf
andradei asked this question in Q&A
Discussion options

You must be logged in to vote

I got this working by adding templ to userLanguages in the tailwindcss-ls config:

[language-server.tailwindcss-ls]
config = { userLanguages = { templ = "html" } }

[[language]]
name = "templ"
auto-format = true
language-servers = [ "templ", "tailwindcss-ls" ]

Replies: 5 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Nintron27
Comment options

Comment options

You must be logged in to vote
1 reply
@Nintron27
Comment options

Answer selected by andradei
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants