Twiggy
VSCode Marketplace: Twiggy
This is a fork of kaermorchen/twig-language-server (Modern Twig).
Definition
![Definition for templates and blocks](https://github.com/moetelo/twiggy/assets/17011936/d192a359-d2c1-471b-bd08-79c847cfeb9e)
Completion
![Completion](https://github.com/moetelo/twiggy/assets/17011936/b5a7b411-b7c3-4411-b4bb-c3a244dc71f6)
[!TIP]
For better completion in Symfony or Craft CMS, configure twiggy.framework and follow the extension output (Twiggy Language Server ).
Inlay hints
![inlay hints](https://github.com/moetelo/twiggy/assets/17011936/ae833425-06e9-4c55-84d2-47b152bae51a)
Setup
VS Code
- Open Command Palette (
Ctrl+P ), type ext install moetelo.twiggy and press Enter .
- For Symfony project, set
twiggy.phpExecutable and twiggy.symfonyConsolePath in 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.
Development
- Install pnpm.
pnpm install in the project dir.
- Press F5 in VS Code to start debugging.
Monorepo
| |