Latte
Latte templating language support for Zed
How to install
With Forge Super installed, the button above opens the app on this extension, where you press Install. Nothing is installed until you do.
You can also open the Extensions panel in the app and search for Latte. The extension's id is latte.
Don't have Forge Super yet? Download it here.
README
From the extension's repository, written by its authors and not by Mentenaz. See the source.
Zed Latte Extension
Latte language support for the Zed code editor.
- Syntax highlighting, brackets, outline, and indentation for
.lattefiles. - Arguments and PHP blocks are passed to tree-sitter-php for highlighting.
- Emmet / Tailwind language server support
- Powered by tree-sitter-latte.
Installation
Install from the zed extensions list.
Enabling tailwindCSS support
To use TailwindCSS you need to inform the LSP of the Latte filetype. Additionally, you need to add tailwindcss-language-server to your language_servers list for Latte.
{
"languages": {
"Latte": {
"language_servers": ["tailwindcss-language-server", "emmet"]
}
},
"lsp": {
"tailwindcss-language-server": {
"settings": {
"tailwindCSS.includeLanguages": {
"latte": "html"
}
}
}
}
}
This example above configures zed to use tailwindcss-language-server + the emmet language server when working with Latte files.²
Installation (from source)
- Open Zed.
- Go to Extensions > Install Dev Extension and select this folder.
Contributing
Pull requests and issues are welcome!
License
MIT License. See LICENSE for details.