https://github.com/thebeyondgroup/zed-shopify-liquid
A Zed extension to add syntax highlighting for Liquid
https://github.com/thebeyondgroup/zed-shopify-liquid
liquid shopify zed
Last synced: 4 months ago
JSON representation
A Zed extension to add syntax highlighting for Liquid
- Host: GitHub
- URL: https://github.com/thebeyondgroup/zed-shopify-liquid
- Owner: TheBeyondGroup
- License: mit
- Created: 2024-05-02T13:46:12.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-08T17:18:37.000Z (over 1 year ago)
- Last Synced: 2025-01-26T08:14:24.367Z (over 1 year ago)
- Topics: liquid, shopify, zed
- Language: Rust
- Homepage:
- Size: 16.6 KB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Shopify Liquid Extension for Zed
This extension adds syntax highlighting for Liquid to Zed.
More work is needed to bring this extension in line with vscode plugin, so
contributions are welcome!
> [!CAUTION]
> The injections.scm used by this plugin considers the template
> content to only be HTML.
>
> *.js.liquid will not have correctly highlighted JS. No info is derived
> from the file extension to set the base file type.
>
> How to deal with this will come in the future.
## Configure Prettier formatting and Tailwind LSP
``` json
"lsp": {
"tailwindcss-language-server": {
"settings": {
"includeLanguages": {
"liquid": "html"
}
}
}
},
"languages": {
"Liquid": {
"prettier": {
"allowed": true,
"plugins": [
"@shopify/prettier-plugin-liquid",
"prettier-plugin-tailwindcss"
]
},
"language_servers": ["tailwindcss-language-server", "..."]
}
}
```
## Credits
This extension uses [grammar](https://github.com/hankthetank27/tree-sitter-liquid) and queries from [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter/tree/master/queries/liquid)