Skip to content

Commit cd864ac

Browse files
authored
fix(helm_ls,yamlls): support custom filetype for helm-ls #3893
1 parent 036885e commit cd864ac

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lua/lspconfig/configs/helm_ls.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ local util = require 'lspconfig.util'
33
return {
44
default_config = {
55
cmd = { 'helm_ls', 'serve' },
6-
filetypes = { 'helm' },
6+
filetypes = { 'helm', 'yaml.helm-values' },
77
root_dir = util.root_pattern 'Chart.yaml',
88
single_file_support = true,
99
capabilities = {

lua/lspconfig/configs/yamlls.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
return {
22
default_config = {
33
cmd = { 'yaml-language-server', '--stdio' },
4-
filetypes = { 'yaml', 'yaml.docker-compose', 'yaml.gitlab' },
4+
filetypes = { 'yaml', 'yaml.docker-compose', 'yaml.gitlab', 'yaml.helm-values' },
55
root_dir = function(fname)
66
return vim.fs.dirname(vim.fs.find('.git', { path = fname, upward = true })[1])
77
end,

0 commit comments

Comments
 (0)