diff options
| author | 2026-09-25 17:59:19 +0200 | |
|---|---|---|
| committer | 2026-09-25 17:59:19 +0200 | |
| commit | b1690381850f011abad0bb3e94c03e99a9101e98 (patch) | |
| tree | 3be8bb2d93f55d96912bd451df92881e2f51b464 /neovim/.config/nvim/lua/plugins | |
| parent | fcbdefe39ef741f8fdcd23cbc537b2e16ccd2490 (diff) | |
| download | dotfiles-b1690381850f011abad0bb3e94c03e99a9101e98.tar.gz dotfiles-b1690381850f011abad0bb3e94c03e99a9101e98.tar.bz2 dotfiles-b1690381850f011abad0bb3e94c03e99a9101e98.zip | |
Added helm stuff
Diffstat (limited to 'neovim/.config/nvim/lua/plugins')
| -rw-r--r-- | neovim/.config/nvim/lua/plugins/lsp.lua | 15 | ||||
| -rw-r--r-- | neovim/.config/nvim/lua/plugins/treesitter.lua | 1 |
2 files changed, 16 insertions, 0 deletions
diff --git a/neovim/.config/nvim/lua/plugins/lsp.lua b/neovim/.config/nvim/lua/plugins/lsp.lua index 0463dde..3106fcd 100644 --- a/neovim/.config/nvim/lua/plugins/lsp.lua +++ b/neovim/.config/nvim/lua/plugins/lsp.lua | |||
| @@ -15,11 +15,26 @@ return { | |||
| 15 | "ts_ls", | 15 | "ts_ls", |
| 16 | "cssls", | 16 | "cssls", |
| 17 | "html", | 17 | "html", |
| 18 | "helm_ls", | ||
| 18 | }, | 19 | }, |
| 19 | -- default true: auto-calls vim.lsp.enable() for every Mason-installed | 20 | -- default true: auto-calls vim.lsp.enable() for every Mason-installed |
| 20 | -- server as it finishes installing. | 21 | -- server as it finishes installing. |
| 21 | }, | 22 | }, |
| 22 | config = function(_, opts) | 23 | config = function(_, opts) |
| 24 | -- helm_ls's default config only attaches to filetype "helm" / | ||
| 25 | -- "yaml.helm-values" (not plain "yaml"), so without this, | ||
| 26 | -- templates/*.yaml only gets yamlls — which flags Helm's Go template | ||
| 27 | -- syntax ({{ .Values.x }}) as invalid YAML. values.yaml gets the | ||
| 28 | -- composite filetype instead, which both yamlls and helm_ls match, so | ||
| 29 | -- it keeps YAML validation *and* gets helm_ls's values-schema support. | ||
| 30 | vim.filetype.add({ | ||
| 31 | pattern = { | ||
| 32 | [".*/templates/.*%.ya?ml"] = "helm", | ||
| 33 | [".*/templates/.*%.tpl"] = "helm", | ||
| 34 | [".*/values.*%.ya?ml"] = "yaml.helm-values", | ||
| 35 | }, | ||
| 36 | }) | ||
| 37 | |||
| 23 | -- Merge blink.cmp's LSP capabilities into every server's default config | 38 | -- Merge blink.cmp's LSP capabilities into every server's default config |
| 24 | -- (Mason-managed or not) before any server gets enabled. | 39 | -- (Mason-managed or not) before any server gets enabled. |
| 25 | vim.lsp.config("*", { | 40 | vim.lsp.config("*", { |
diff --git a/neovim/.config/nvim/lua/plugins/treesitter.lua b/neovim/.config/nvim/lua/plugins/treesitter.lua index 37320d4..b26c039 100644 --- a/neovim/.config/nvim/lua/plugins/treesitter.lua +++ b/neovim/.config/nvim/lua/plugins/treesitter.lua | |||
| @@ -21,6 +21,7 @@ return { | |||
| 21 | "json", | 21 | "json", |
| 22 | "markdown", | 22 | "markdown", |
| 23 | "markdown_inline", | 23 | "markdown_inline", |
| 24 | "helm", | ||
| 24 | } | 25 | } |
| 25 | 26 | ||
| 26 | -- The `main` branch shells out to the `tree-sitter` CLI to build every | 27 | -- The `main` branch shells out to the `tree-sitter` CLI to build every |
