Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
docs: Add Tailwind CSS LSP configuration for Gleam (#58115)
Kaedinc545fb67d0ce
diff --git a/docs/src/languages/gleam.md b/docs/src/languages/gleam.mdindex dba403d4ede..af19b77886a 100644--- a/docs/src/languages/gleam.md+++ b/docs/src/languages/gleam.md@@ -10,6 +10,31 @@ Gleam support is available through the [Gleam extension](https://github.com/glea- Tree-sitter: [gleam-lang/tree-sitter-gleam](https://github.com/gleam-lang/tree-sitter-gleam)- Language Server: [gleam lsp](https://github.com/gleam-lang/gleam/tree/main/compiler-core/src/language_server)+## Using the Tailwind CSS Language Server with Gleam++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 Gleam files, you need to enable the language server for Gleam and configure where it should look for CSS classes by adding the following to your `settings.json`:++```json [settings]+{+ "languages": {+ "Gleam": {+ "language_servers": ["tailwindcss-language-server", "..."]+ }+ },+ "lsp": {+ "tailwindcss-language-server": {+ "settings": {+ "experimental": {+ "classRegex": ["\"([^\"]*)\""]+ }+ }+ }+ }+}+```++This works with plain string literals and with [Lustre](https://github.com/lustre-labs/lustre) view templates where class names are passed as string arguments.+See also:- [Elixir](./elixir.md)diff --git a/docs/src/languages/tailwindcss.md b/docs/src/languages/tailwindcss.mdindex e461aa2d7fa..4644549ea0b 100644--- a/docs/src/languages/tailwindcss.md+++ b/docs/src/languages/tailwindcss.md@@ -14,7 +14,7 @@ Languages which can be used with Tailwind CSS in Zed:- [Astro](./astro.md#using-the-tailwind-css-language-server-with-astro)- [CSS](./css.md)- [ERB](./ruby.md#using-the-tailwind-css-language-server-with-ruby)-- [Gleam](./gleam.md)+- [Gleam](./gleam.md#using-the-tailwind-css-language-server-with-gleam)- [HEEx](./elixir.md#using-the-tailwind-css-language-server-with-heex-templates)- [HTML](./html.md#using-the-tailwind-css-language-server-with-html)- [TypeScript](./typescript.md#using-the-tailwind-css-language-server-with-typescript)