aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorqvalentin <36446499+qvalentin@users.noreply.github.com>2025-06-01 20:31:19 +0200
committerGitHub <noreply@github.com>2025-06-01 11:31:19 -0700
commitc30a661a1f4c270f542eaf861f3eb726bb9baa69 (patch)
tree3c1def486d15912eee47bb17e01b8d496e8f923f
parentdocs: update configs.md (diff)
downloadnvim-lspconfig-c30a661a1f4c270f542eaf861f3eb726bb9baa69.tar
nvim-lspconfig-c30a661a1f4c270f542eaf861f3eb726bb9baa69.tar.gz
nvim-lspconfig-c30a661a1f4c270f542eaf861f3eb726bb9baa69.tar.bz2
nvim-lspconfig-c30a661a1f4c270f542eaf861f3eb726bb9baa69.tar.lz
nvim-lspconfig-c30a661a1f4c270f542eaf861f3eb726bb9baa69.tar.xz
nvim-lspconfig-c30a661a1f4c270f542eaf861f3eb726bb9baa69.tar.zst
nvim-lspconfig-c30a661a1f4c270f542eaf861f3eb726bb9baa69.zip
feat(helm_ls,yamlls): support custom filetype for helm-ls #3881
this adds config for starting helm_ls and yamlls with the new filetype yaml.helm-values that will be added to the neovim helm_ls extension by https://github.com/qvalentin/helm-ls.nvim/pull/8 Files of this type should have both yamlls and helm-ls running. This is required because helm-ls now supports editing values.yaml files but should only be active for certain yaml files.
-rw-r--r--lsp/helm_ls.lua2
-rw-r--r--lsp/yamlls.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/lsp/helm_ls.lua b/lsp/helm_ls.lua
index 39c574bd..9c92fa0e 100644
--- a/lsp/helm_ls.lua
+++ b/lsp/helm_ls.lua
@@ -11,7 +11,7 @@
--- If need Helm file highlight use [vim-helm](https://github.com/towolf/vim-helm) plugin.
return {
cmd = { 'helm_ls', 'serve' },
- filetypes = { 'helm' },
+ filetypes = { 'helm', 'yaml.helm-values' },
root_markers = { 'Chart.yaml' },
capabilities = {
workspace = {
diff --git a/lsp/yamlls.lua b/lsp/yamlls.lua
index c3687cc0..4d2ebca0 100644
--- a/lsp/yamlls.lua
+++ b/lsp/yamlls.lua
@@ -60,7 +60,7 @@
--- ```
return {
cmd = { 'yaml-language-server', '--stdio' },
- filetypes = { 'yaml', 'yaml.docker-compose', 'yaml.gitlab' },
+ filetypes = { 'yaml', 'yaml.docker-compose', 'yaml.gitlab', 'yaml.helm-values' },
root_markers = { '.git' },
settings = {
-- https://github.com/redhat-developer/vscode-redhat-telemetry#how-to-disable-telemetry-reporting