Moved lsp helm ls config

This commit is contained in:
Prajakt Shastry 2023-12-28 22:25:20 -05:00
parent 26a3370047
commit b7035c2140
2 changed files with 20 additions and 21 deletions

View File

@ -269,26 +269,5 @@ require('litee.gh').setup({
}
})
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" },
}
-- The line beneath this is called `modeline`. See `:help modeline`
-- vim: ts=2 sts=2 sw=2 et

View File

@ -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" },
}