VSCode Marketplace: Twiggy
This is a fork of kaermorchen/twig-language-server (Modern Twig).
Twiggy is a real language server for Twig, not just a syntax highlighter.
| Twiggy | Twig Language 2 | Twig | |
|---|---|---|---|
| Language server (LSP) | ✅ | ❌ | ❌ |
| Autocomplete, framework-aware (Symfony, Craft CMS) | ✅ | ❌ | ❌ |
| Go to definition (variables, templates, blocks) | ✅ | ❌ | ❌ |
| Hovers & signature help | ✅ | hover only | ❌ |
| Inlay hints | ✅ | ❌ | ❌ |
| Diagnostics & formatting | Twig-CS-Fixer | PrettyDiff | ❌ |
| Syntax highlighting | ✅ + semantic tokens | ✅ | ✅ |
| Snippets | ✅ | ✅ | ✅ |
| Neovim / Sublime Text support | ✅ | ❌ | ❌ |
Tip
For better completion in Symfony or Craft CMS, configure twiggy.framework and follow the extension output (Twiggy Language Server).
- Open Command Palette (
Ctrl+P), typeext install moetelo.twiggyand pressEnter. - For Symfony project, set
twiggy.phpExecutableandtwiggy.symfonyConsolePathin the VS Code settings. - Check the extension output (
Twiggy Language Server) for errors.
Submit new issue if you have any problems or the feature you want is missing.
Please refer to this reply and the instructions from neovim/nvim-lspconfig.
Follow instructions ready-to-use client implementation maintained by the community.
- Install Bun.
bun installin the project dir.- Press F5 in VS Code to start debugging.



