Syntax highlighting for Helm templates using tree-sitter and integration of helm-ls.
Before the extension is working properly, you have to install the helm-ls and yaml-languages-server with your preferred package manager.
Install this extension via the Zed extension store.
The extension relies on the PATH environment variable and first looks for 'helm_ls', then 'helm-ls'. If neither is available, an error is shown.
This is an example of providing configuration for the language server via Zed's settings.json.
For full reference of possible values, refer to helm-ls configuration section.
{
...
"lsp": {
"helm_ls": {
"settings": {
"helm-ls": {
"logLevel": "info",
"yamlls": {
"enabled": true
}
}
}
}
},
"file_types": {
"Helm": [
"helmfile.yaml",
"helmfile.yml",
"Chart.yaml",
"Chart.yml",
"Chart.lock",
"requirements.yaml",
"requirements.yml",
"**/templates/**/*.tpl",
"**/templates/**/*.yaml",
"**/templates/**/*.yml",
"**/helmfile.d/**/*.yaml",
"**/helmfile.d/**/*.yml",
],
},
}[https://github.com/ngalaiko/tree-sitter-go-template]
Every time the extension is released:
-
Bump the Version: Update the version number in Cargo.toml and extension.toml.
-
Update Extension Index: After releasing, update the extension entry in zed-industries/extensions to reflect the new version.
This ensures users always have access to the newest version.