Skip to content

Commit

Permalink
feat: add suport for helm charts (helix-editor#9900)
Browse files Browse the repository at this point in the history
  • Loading branch information
c0rydoras authored and mtoohey31 committed Jun 2, 2024
1 parent 63f1d62 commit 7b2d373
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions book/src/generated/lang-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
| haskell-persistent || | | |
| hcl |||| `terraform-ls` |
| heex ||| | `elixir-ls` |
| helm || | | `helm_ls` |
| hocon || || |
| hoon || | | |
| hosts || | | |
Expand Down
12 changes: 11 additions & 1 deletion languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ zls = { command = "zls" }
blueprint-compiler = { command = "blueprint-compiler", args = ["lsp"] }
typst-lsp = { command = "typst-lsp" }
pkgbuild-language-server = { command = "pkgbuild-language-server" }
helm_ls = { command = "helm_ls", args = ["serve"] }

[language-server.ansible-language-server]
command = "ansible-language-server"
Expand Down Expand Up @@ -3380,4 +3381,13 @@ language-servers = [
{ except-features = [
"diagnostics",
], name = "bash-language-server" },
]
]

[[language]]
name = "helm"
grammar = "gotmpl"
scope = "source.helm"
roots = ["Chart.yaml"]
comment-token = "#"
language-servers = ["helm_ls"]
file-types = [ { glob = "templates/*.yaml" }, { glob = "templates/_helpers.tpl"}, { glob = "templates/NOTES.txt" } ]
1 change: 1 addition & 0 deletions runtime/queries/helm/highlights.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
; inherits: gotmpl
1 change: 1 addition & 0 deletions runtime/queries/helm/injections.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
; inherits: gotmpl

0 comments on commit 7b2d373

Please sign in to comment.