aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Deierlein2024-03-19 14:07:44 +0000
committerGitHub2024-03-19 14:07:44 +0000
commit4b4947639a4495e6a0ebd0d5ce44ff083e240b7b (patch)
tree11e7da16658c6fecb5d80db4efb63046a847ca90
parent5b8bfc547607602a557c6115bb5edb557099f8f2 (diff)
feat: add suport for helm charts (#9900)
-rw-r--r--book/src/generated/lang-support.md1
-rw-r--r--languages.toml12
-rw-r--r--runtime/queries/helm/highlights.scm1
-rw-r--r--runtime/queries/helm/injections.scm1
4 files changed, 14 insertions, 1 deletions
diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md
index 3820c39d..47f8057e 100644
--- a/book/src/generated/lang-support.md
+++ b/book/src/generated/lang-support.md
@@ -74,6 +74,7 @@
| haskell-persistent | ✓ | | | |
| hcl | ✓ | ✓ | ✓ | `terraform-ls` |
| heex | ✓ | ✓ | | `elixir-ls` |
+| helm | ✓ | | | `helm_ls` |
| hocon | ✓ | | ✓ | |
| hoon | ✓ | | | |
| hosts | ✓ | | | |
diff --git a/languages.toml b/languages.toml
index ff25e018..ccd546fa 100644
--- a/languages.toml
+++ b/languages.toml
@@ -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"
@@ -3380,4 +3381,13 @@ language-servers = [
{ except-features = [
"diagnostics",
], name = "bash-language-server" },
-] \ No newline at end of file
+]
+
+[[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" } ] \ No newline at end of file
diff --git a/runtime/queries/helm/highlights.scm b/runtime/queries/helm/highlights.scm
new file mode 100644
index 00000000..6ffb4b7d
--- /dev/null
+++ b/runtime/queries/helm/highlights.scm
@@ -0,0 +1 @@
+; inherits: gotmpl
diff --git a/runtime/queries/helm/injections.scm b/runtime/queries/helm/injections.scm
new file mode 100644
index 00000000..6ffb4b7d
--- /dev/null
+++ b/runtime/queries/helm/injections.scm
@@ -0,0 +1 @@
+; inherits: gotmpl