|
|
|
@ -88,3 +88,23 @@ vim.api.nvim_create_autocmd({ "BufWritePre" }, {
|
|
|
|
|
pattern = { "*.tf", "*.tfvars" },
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
local configs = require('lspconfig.configs')
|
|
|
|
|
local lspconfig = require('lspconfig')
|
|
|
|
|
local util = require('lspconfig.util')
|
|
|
|
|
|
|
|
|
|
if not configs.helm_ls then
|
|
|
|
|
configs.helm_ls = {
|
|
|
|
|
default_config = {
|
|
|
|
|
cmd = { "helm_ls", "serve" },
|
|
|
|
|
filetypes = { 'helm' },
|
|
|
|
|
root_dir = function(fname)
|
|
|
|
|
return util.root_pattern('Chart.yaml')(fname)
|
|
|
|
|
end,
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
lspconfig.helm_ls.setup {
|
|
|
|
|
filetypes = { "helm" },
|
|
|
|
|
cmd = { "helm_ls", "serve" },
|
|
|
|
|
}
|
|
|
|
|