From e9691ef3001d262e774a082667b5337b0728a3db Mon Sep 17 00:00:00 2001 From: Peter Benjamin Date: Fri, 29 Dec 2023 13:07:07 -0800 Subject: [PATCH] feat(lang): add support for helm chart templates --- lua/lazyvim/plugins/extras/lang/helm.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 lua/lazyvim/plugins/extras/lang/helm.lua diff --git a/lua/lazyvim/plugins/extras/lang/helm.lua b/lua/lazyvim/plugins/extras/lang/helm.lua new file mode 100644 index 00000000..afca7c0e --- /dev/null +++ b/lua/lazyvim/plugins/extras/lang/helm.lua @@ -0,0 +1,22 @@ +require("lazyvim.util.lsp").on_attach(function(client, buffer) + if client.name == "docker_compose_language_service" then + if vim.api.nvim_buf_get_option(buffer, "filetype") == "helm" then + vim.schedule(function() + vim.cmd("LspStop ++force docker_compose_language_service") + end) + end + end +end) + +return { + "towolf/vim-helm", + { + "neovim/nvim-lspconfig", + opts = { + servers = { + docker_compose_language_service = {}, + helm_ls = {}, + }, + }, + }, +}