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.
- Tree-sitter: gleam-lang/tree-sitter-gleam
- Language Server: gleam lsp
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: