chore(neovim): make yaml-companion available for helm template files

This commit is contained in:
Yorick Barbanneau 2025-01-15 16:19:41 +01:00
parent 90a349f519
commit 4ed4bc79b6

View file

@ -229,7 +229,7 @@ vim.api.nvim_create_autocmd('LspAttach', {
-- Move to the next diagnostic
bufmap('n', ']d', '<cmd>lua vim.diagnostic.goto_next()<cr>')
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', '<F3>', '<cmd>lua require("yaml-companion").open_ui_select()<cr>')
end
end