Update LSP Config to enable Helm chart syntax highlighting
This commit is contained in:
parent
4cb5bb7608
commit
038e63d813
1 changed files with 138 additions and 120 deletions
|
@ -57,6 +57,15 @@ return {
|
||||||
vim.keymap.set("n", "<leader>af", vim.lsp.buf.format, { desc = "Auto-Format File" })
|
vim.keymap.set("n", "<leader>af", vim.lsp.buf.format, { desc = "Auto-Format File" })
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"qvalentin/helm-ls.nvim",
|
||||||
|
ft = "helm",
|
||||||
|
opts = {
|
||||||
|
conceal_templates = { enabled = true },
|
||||||
|
indent_hints = { enabled = true },
|
||||||
|
},
|
||||||
|
{ "neovim/nvim-lspconfig", event = { "BufReadPre", "BufNewFile", "BufEnter" } },
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
tag = "v1.8.0",
|
tag = "v1.8.0",
|
||||||
|
@ -82,7 +91,14 @@ return {
|
||||||
lspconfig.gh_actions_ls.setup({ capabilities = capabilities })
|
lspconfig.gh_actions_ls.setup({ capabilities = capabilities })
|
||||||
lspconfig.helm_ls.setup({
|
lspconfig.helm_ls.setup({
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
filetypes = { "tpl", "helm"},
|
-- filetypes = { "tpl", "helm" },
|
||||||
|
settings = {
|
||||||
|
["helm_ls"] = {
|
||||||
|
yamlls = {
|
||||||
|
path = "yaml-language-server",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
})
|
})
|
||||||
lspconfig.jsonls.setup({ capabilities = capabilities })
|
lspconfig.jsonls.setup({ capabilities = capabilities })
|
||||||
lspconfig.basedpyright.setup({
|
lspconfig.basedpyright.setup({
|
||||||
|
@ -108,7 +124,9 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
lspconfig.yamlls.setup({ capabilities = capabilities })
|
lspconfig.yamlls.setup({
|
||||||
|
capabilities = capabilities,
|
||||||
|
})
|
||||||
lspconfig.ansiblels.setup({ capabilities = capabilities })
|
lspconfig.ansiblels.setup({ capabilities = capabilities })
|
||||||
vim.keymap.set("n", "<leader>vd", vim.lsp.buf.hover, { desc = "View Docstring" })
|
vim.keymap.set("n", "<leader>vd", vim.lsp.buf.hover, { desc = "View Docstring" })
|
||||||
vim.keymap.set("n", "<leader>gt", vim.lsp.buf.definition, { desc = "Go To Definition" })
|
vim.keymap.set("n", "<leader>gt", vim.lsp.buf.definition, { desc = "Go To Definition" })
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue