--- title: Astro description: "Configure Astro language support in Zed, including language servers, formatting, and debugging." --- # Astro Astro support is available through the [Astro extension](https://github.com/zed-extensions/astro). - Tree-sitter: [virchau13/tree-sitter-astro](https://github.com/virchau13/tree-sitter-astro) - Language Server: [withastro/language-tools](https://github.com/withastro/astro/tree/main/packages/language-tools/language-server) ## Using the Tailwind CSS Language Server with Astro To get all the features (autocomplete, linting, etc.) from the [Tailwind CSS language server](https://github.com/tailwindlabs/tailwindcss-intellisense/tree/HEAD/packages/tailwindcss-language-server#readme) in Astro files, you need to configure the language server so that it knows about where to look for CSS classes by adding the following to your `settings.json`: ```json [settings] { "lsp": { "tailwindcss-language-server": { "settings": { "includeLanguages": { "astro": "html" }, "experimental": { "classRegex": [ "class=\"([^\"]*)\"", "class='([^']*)'", "class:list=\"{([^}]*)}\"", "class:list='{([^}]*)}'" ] } } } } } ``` With these settings, you will get completions for Tailwind CSS classes in Astro template files. Examples: ```astro --- const active = true; ---
Hello World