From 3225818acd10a3b231999bf13134cc08fda48b65 Mon Sep 17 00:00:00 2001 From: Peter Benjamin Date: Fri, 2 Feb 2024 21:25:44 -0800 Subject: [PATCH] fix(helm): stop yamlls and disable autostart --- lua/lazyvim/plugins/extras/lang/helm.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lua/lazyvim/plugins/extras/lang/helm.lua b/lua/lazyvim/plugins/extras/lang/helm.lua index afca7c0e..1b6603bb 100644 --- a/lua/lazyvim/plugins/extras/lang/helm.lua +++ b/lua/lazyvim/plugins/extras/lang/helm.lua @@ -1,8 +1,8 @@ -require("lazyvim.util.lsp").on_attach(function(client, buffer) +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 + if vim.api.nvim_get_option_value("filetype", { buf = buffer }) == "helm" then vim.schedule(function() - vim.cmd("LspStop ++force docker_compose_language_service") + vim.cmd("LspStop ++force docker_compose_language_service yamlls") end) end end @@ -14,7 +14,8 @@ return { "neovim/nvim-lspconfig", opts = { servers = { - docker_compose_language_service = {}, + yamlls = { autostart = false }, + docker_compose_language_service = { autostart = false }, helm_ls = {}, }, },