diff --git a/lua/lazyvim/plugins/extras/lang/helm.lua b/lua/lazyvim/plugins/extras/lang/helm.lua index 1b6603bb..94f810c8 100644 --- a/lua/lazyvim/plugins/extras/lang/helm.lua +++ b/lua/lazyvim/plugins/extras/lang/helm.lua @@ -2,7 +2,14 @@ require("lazyvim.util").lsp.on_attach(function(client, buffer) if client.name == "docker_compose_language_service" then if vim.api.nvim_get_option_value("filetype", { buf = buffer }) == "helm" then vim.schedule(function() - vim.cmd("LspStop ++force docker_compose_language_service yamlls") + vim.cmd("LspStop ++force docker_compose_language_service") + end) + end + end + if client.name == "yamlls" then + if vim.api.nvim_get_option_value("filetype", { buf = buffer }) == "helm" then + vim.schedule(function() + vim.cmd("LspStop ++force yamlls") end) end end @@ -14,8 +21,8 @@ return { "neovim/nvim-lspconfig", opts = { servers = { - yamlls = { autostart = false }, - docker_compose_language_service = { autostart = false }, + yamlls = {}, + docker_compose_language_service = {}, helm_ls = {}, }, },