From 10060536bab7dabc8df24c069cdda7b72ae0a884 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 3696804748950..54e4c5374740d 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 1cf8da374234b..9dc357464fa49 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" @@ -3352,3 +3353,12 @@ indent = { tab-width = 4, unit = "\t" } [[grammar]] name = "supercollider" source = { git = "https://github.com/madskjeldgaard/tree-sitter-supercollider", rev = "3b35bd0fded4423c8fb30e9585c7bacbcd0e8095" } + +[[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" } ] 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