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,31 +1,32 @@
vim.lsp.enable({
"dockerls",
"gitlabcils",
"luals",
"terraformls",
"yamlls"
"dockerls",
"gitlabcils",
"helmls",
"luals",
"terraformls",
"yamlls",
})
vim.diagnostic.config({
virtual_lines = true,
-- virtual_text = true,
underline = true,
update_in_insert = false,
severity_sort = true,
float = {
border = "rounded",
source = true,
},
signs = {
text = {
[vim.diagnostic.severity.ERROR] = "󰅚 ",
[vim.diagnostic.severity.WARN] = "󰀪 ",
[vim.diagnostic.severity.INFO] = "󰋽 ",
[vim.diagnostic.severity.HINT] = "󰌶 ",
},
numhl = {
[vim.diagnostic.severity.ERROR] = "ErrorMsg",
[vim.diagnostic.severity.WARN] = "WarningMsg",
},
},
virtual_lines = true,
-- virtual_text = true,
underline = true,
update_in_insert = false,
severity_sort = true,
float = {
border = "rounded",
source = true,
},
signs = {
text = {
[vim.diagnostic.severity.ERROR] = "󰅚 ",
[vim.diagnostic.severity.WARN] = "󰀪 ",
[vim.diagnostic.severity.INFO] = "󰋽 ",
[vim.diagnostic.severity.HINT] = "󰌶 ",
},
numhl = {
[vim.diagnostic.severity.ERROR] = "ErrorMsg",
[vim.diagnostic.severity.WARN] = "WarningMsg",
},
},
})

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 = {
"docker-language-server", -- https://github.com/docker/docker-language-server
"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
"prettier", -- https://github.com/prettier/prettier
"prettierd", -- https://github.com/prettier/prettier