From 4ed4bc79b62241c7d16d9cf355896ed72222be3d Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Wed, 15 Jan 2025 16:19:41 +0100 Subject: [PATCH] chore(neovim): make yaml-companion available for helm template files --- modules/home-manager/cli/neovim/files/lspconfig.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/home-manager/cli/neovim/files/lspconfig.lua b/modules/home-manager/cli/neovim/files/lspconfig.lua index a672376..8cfd4ba 100644 --- a/modules/home-manager/cli/neovim/files/lspconfig.lua +++ b/modules/home-manager/cli/neovim/files/lspconfig.lua @@ -229,7 +229,7 @@ vim.api.nvim_create_autocmd('LspAttach', { -- Move to the next diagnostic bufmap('n', ']d', 'lua vim.diagnostic.goto_next()') local client = vim.lsp.get_client_by_id(ev.data.client_id) - if client.name == "yamlls" then + if client and (client.name == "yamlls" or client.name == "helm_ls") then bufmap ('n', '', 'lua require("yaml-companion").open_ui_select()') end end