From cd864ac0d4f253602fb176772389a4eeb16f8a57 Mon Sep 17 00:00:00 2001 From: qvalentin <36446499+qvalentin@users.noreply.github.com> Date: Sun, 8 Jun 2025 03:20:55 +0200 Subject: fix(helm_ls,yamlls): support custom filetype for helm-ls #3893 --- lua/lspconfig/configs/helm_ls.lua | 2 +- lua/lspconfig/configs/yamlls.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lua') diff --git a/lua/lspconfig/configs/helm_ls.lua b/lua/lspconfig/configs/helm_ls.lua index 2bd77326..0149c508 100644 --- a/lua/lspconfig/configs/helm_ls.lua +++ b/lua/lspconfig/configs/helm_ls.lua @@ -3,7 +3,7 @@ local util = require 'lspconfig.util' return { default_config = { cmd = { 'helm_ls', 'serve' }, - filetypes = { 'helm' }, + filetypes = { 'helm', 'yaml.helm-values' }, root_dir = util.root_pattern 'Chart.yaml', single_file_support = true, capabilities = { diff --git a/lua/lspconfig/configs/yamlls.lua b/lua/lspconfig/configs/yamlls.lua index f3392a6b..db3863c1 100644 --- a/lua/lspconfig/configs/yamlls.lua +++ b/lua/lspconfig/configs/yamlls.lua @@ -1,7 +1,7 @@ return { default_config = { cmd = { 'yaml-language-server', '--stdio' }, - filetypes = { 'yaml', 'yaml.docker-compose', 'yaml.gitlab' }, + filetypes = { 'yaml', 'yaml.docker-compose', 'yaml.gitlab', 'yaml.helm-values' }, root_dir = function(fname) return vim.fs.dirname(vim.fs.find('.git', { path = fname, upward = true })[1]) end, -- cgit v1.2.3-70-g09d2