Skip to content

Injecting TailwindCSS language server in Golang strings #12118

Closed Answered by Nintron27
Nintron27 asked this question in Troubleshooting
Discussion options

You must be logged in to vote

I found how deep the rabbit hole goes...

After digging way too deep, I figured out I was missing a prefix on the initialization options, so, the final solution is:

[language-server.tailwindcss-ls]
command = "tailwindcss-language-server"
args = ["--stdio"]
config = { userLanguages = { go = "html", "*.go" = "html" }, tailwindCSS = { experimental = { classRegex = [
	[
		"Class(?:es)?[({]([^)}]*)[)}]",
		"[\"`]([^\"`]*)[\"`]",
	],
] } } }

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Nintron27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant