Twig
Syntax highlighting and Intellisense for Twig in Zed
LanguagesLanguage servers
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 Twig. The extension's id is twig.
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.
Downloads on Zed Extension Store
Twig for Zed
This is a zed extension that enables intellisense and syntax highlighting for the twig templating language.
Get Emmet to work
Edit your ~/Library/Application\ Support/Zed/extensions/installed/emmet/extension.toml accordingly:
[language_servers.emmet-language-server]
language = "HTML"
languages = ["HTML", "PHP", "ERB", "JavaScript", "TSX", "CSS", "Twig"]
[language_servers.emmet-language-server.language_ids]
TSX = "typescriptreact"
HTML = "html"
PHP = "php"
JavaScript = "javascriptreact"
CSS = "css"
ERB = "eruby"
Twig = "twig"
Credits
This extension uses:
- https://github.com/gbprod/tree-sitter-twig for syntax highlighting
- https://github.com/moetelo/twiggy for the language-server
Contributions are welcome!