Skip to content

Type to search extensions

Gleam

v0.6.0

Gleam support.

Updated 8 months ago
87k downloads 62 stars Repository ↗

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:

ZedExt An unofficial community project. Not affiliated with Zed Industries.

Data from Zed’s extension registry and GitHub · updated