Configuring tailwindcss #4986
Replies: 3 comments 18 replies
-
@H4ckint0sh Its been added now and working. Here is the instructions in this PR, it needs to be added to wiki though. |
Beta Was this translation helpful? Give feedback.
-
Hi! @pyrossh I followed the steps in the wiki but it's not working 😕 .. I can't understand why. This is my [language-server.astro-ls]
command = "astro-ls"
args = [ "--stdio" ]
config = { "typescript" = { "tsdk" = "/Users/valerio.pescatori/.volta/tools/image/packages/typescript/lib/node_modules/typescript/lib"}, "environment" = "node" }
[language-server.tailwindcss-ls]
command = "tailwindcss-language-server"
args = ["--stdio"]
config = { userLanguages = { astro = "html", "*.astro" = "html" } }
[[language]]
name = "astro"
scope = "source.astro"
injection-regex = "astro"
file-types = ["astro"]
roots = ["package.json", "astro.config.mjs"]
language-servers = [ "astro-ls", "tailwindcss-ls" ]
auto-format = true
formatter = { command = "prettier", args = ["--parser", "astro"] }
[[language]]
name = "typescript"
auto-format = true
formatter = { command = "prettier", args = ["--parser", "typescript"] }
[[language]]
name = "jsx"
language-servers = [ "tailwindcss-ls", "typescript-language-server" ]
[[language]]
name = "tsx"
language-servers = [ "tailwindcss-ls", "typescript-language-server" ]
[[language]]
name = "html"
language-servers = [ "tailwindcss-ls", "vscode-html-language-server" ]
[[language]]
name = "css"
language-servers = [ "tailwindcss-ls", "vscode-css-language-server" ] this is the ![]() I also tried running
Am I missing something? |
Beta Was this translation helpful? Give feedback.
-
Any way to tell when something in tailwind is not written properly? I get intelisense but I can't tell typos. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
i am trying to configure tailwindcss lsp I have the following config in my language.toml but I dont get any auto complete.
this a screenshot from "hx ---health" command.

Any help is greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions