Files
zed/docs/src/languages/gleam.md
T
Kaedin c545fb67d0 docs: Add Tailwind CSS LSP configuration for Gleam (#58115)
Documents how to configure the Tailwind CSS language server for Gleam,
and updates the link on the Tailwind landing page to anchor at the new
section so it matches the pattern used for Astro, ERB, HEEx, HTML,
TypeScript, JavaScript, PHP, Svelte, and Vue.

The config follows what was documented in #43968 when Gleam was added to
`tailwind.rs`.

Refs: #43969

Release Notes:

- N/A

---------

Co-authored-by: Kaedin Hano-Hollis <180361443+kaedinhanohano@users.noreply.github.com>
Co-authored-by: Kunall Banerjee <hey@kimchiii.space>
2026-07-06 10:30:01 +00:00

1.6 KiB

title, description
title description
Gleam Configure Gleam language support in Zed, including language servers, formatting, and debugging.

Gleam

Gleam support is available through the Gleam extension. To learn about Gleam, see the docs or check out the stdlib reference. The Gleam language server has a variety of features, including go-to definition, automatic imports, and more.

Using the Tailwind CSS Language Server with Gleam

To get all the features (autocomplete, linting, etc.) from the Tailwind CSS language server 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:

{
  "languages": {
    "Gleam": {
      "language_servers": ["tailwindcss-language-server", "..."]
    }
  },
  "lsp": {
    "tailwindcss-language-server": {
      "settings": {
        "experimental": {
          "classRegex": ["\"([^\"]*)\""]
        }
      }
    }
  }
}

This works with plain string literals and with Lustre view templates where class names are passed as string arguments.

See also: