Moved lsp helm ls config
This commit is contained in:
parent
26a3370047
commit
b7035c2140
21
init.lua
21
init.lua
|
@ -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`
|
-- The line beneath this is called `modeline`. See `:help modeline`
|
||||||
-- vim: ts=2 sts=2 sw=2 et
|
-- vim: ts=2 sts=2 sw=2 et
|
||||||
|
|
|
@ -88,3 +88,23 @@ vim.api.nvim_create_autocmd({ "BufWritePre" }, {
|
||||||
pattern = { "*.tf", "*.tfvars" },
|
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" },
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue