Files
LazyVim/lua/lazyvim/plugins/extras/lang/helm.lua
2024-06-09 07:33:59 +02:00

35 lines
698 B
Lua

return {
recommended = function()
return LazyVim.extras.wants({
ft = "helm",
root = "Chart.yaml",
})
end,
{ "towolf/vim-helm", ft = "helm" },
{
"nvim-treesitter/nvim-treesitter",
opts = { ensure_installed = { "helm" } },
},
{
"neovim/nvim-lspconfig",
opts = {
servers = {
helm_ls = {},
},
setup = {
yamlls = function()
LazyVim.lsp.on_attach(function(client, buffer)
if vim.bo[buffer].filetype == "helm" then
vim.schedule(function()
vim.cmd("LspStop ++force yamlls")
end)
end
end, "yamlls")
end,
},
},
},
}