From 93779045a34d440f58f9c663b920c3459a719152 Mon Sep 17 00:00:00 2001 From: Arthur Deierlein Date: Sat, 16 Mar 2024 21:04:10 +0100 Subject: [PATCH] feat: add suport for helm charts --- book/src/generated/lang-support.md | 1 + languages.toml | 10 ++++++++++ runtime/queries/helm/highlights.scm | 1 + runtime/queries/helm/injections.scm | 1 + 4 files changed, 13 insertions(+) create mode 100644 runtime/queries/helm/highlights.scm create mode 100644 runtime/queries/helm/injections.scm diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md index 4a0b4b0a9051e..a0f70cd05198d 100644 --- a/book/src/generated/lang-support.md +++ b/book/src/generated/lang-support.md @@ -73,6 +73,7 @@ | haskell-persistent | ✓ | | | | | hcl | ✓ | ✓ | ✓ | `terraform-ls` | | heex | ✓ | ✓ | | `elixir-ls` | +| helm | ✓ | | | `helm_ls` | | hocon | ✓ | | ✓ | | | hoon | ✓ | | | | | hosts | ✓ | | | | diff --git a/languages.toml b/languages.toml index 6e6c57932d108..14042da677e6f 100644 --- a/languages.toml +++ b/languages.toml @@ -96,6 +96,7 @@ yaml-language-server = { command = "yaml-language-server", args = ["--stdio"] } zls = { command = "zls" } blueprint-compiler = { command = "blueprint-compiler", args = ["lsp"] } typst-lsp = { command = "typst-lsp" } +helm_ls = { command = "helm_ls", args = ["serve"] } [language-server.ansible-language-server] command = "ansible-language-server" @@ -3328,3 +3329,12 @@ grammar = "hyprlang" [[grammar]] name = "hyprlang" source = { git = "https://github.com/tree-sitter-grammars/tree-sitter-hyprlang", rev = "27af9b74acf89fa6bed4fb8cb8631994fcb2e6f3"} + +[[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 0000000000000..6ffb4b7d467b8 --- /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 0000000000000..6ffb4b7d467b8 --- /dev/null +++ b/runtime/queries/helm/injections.scm @@ -0,0 +1 @@ +; inherits: gotmpl