Add helm LSP

This commit is contained in:
Valeriy Filippov
2026-03-11 11:45:41 +03:00
parent 304a31c1bf
commit 7ee242ab9a
4 changed files with 49 additions and 26 deletions

13
nvim/lsp/helmls.lua Normal file
View File

@@ -0,0 +1,13 @@
-- https://github.com/neovim/nvim-lspconfig/blob/master/lsp/helm_ls.lua
return {
cmd = { "helm_ls", "serve" },
filetypes = { "helm", "yaml.helm-values" },
root_markers = { "Chart.yaml" },
capabilities = {
workspace = {
didChangeWatchedFiles = {
dynamicRegistration = true,
},
},
},
}

View File

@@ -1,9 +1,10 @@
vim.lsp.enable({ vim.lsp.enable({
"dockerls", "dockerls",
"gitlabcils", "gitlabcils",
"helmls",
"luals", "luals",
"terraformls", "terraformls",
"yamlls" "yamlls",
}) })
vim.diagnostic.config({ vim.diagnostic.config({

View File

@@ -0,0 +1,8 @@
-- https://github.com/qvalentin/helm-ls.nvim
return {
"qvalentin/helm-ls.nvim",
ft = "helm",
opts = {
-- leave empty or see below
},
}

View File

@@ -23,6 +23,7 @@ return {
ensure_installed = { ensure_installed = {
"docker-language-server", -- https://github.com/docker/docker-language-server "docker-language-server", -- https://github.com/docker/docker-language-server
"gitlab-ci-ls", -- https://github.com/alesbrelih/gitlab-ci-ls "gitlab-ci-ls", -- https://github.com/alesbrelih/gitlab-ci-ls
"helm-ls", -- https://github.com/mrjosh/helm-ls
"lua-language-server", -- https://github.com/luals/lua-language-server "lua-language-server", -- https://github.com/luals/lua-language-server
"prettier", -- https://github.com/prettier/prettier "prettier", -- https://github.com/prettier/prettier
"prettierd", -- https://github.com/prettier/prettier "prettierd", -- https://github.com/prettier/prettier