chore(neovim): make yaml-companion available for helm template files
This commit is contained in:
parent
90a349f519
commit
4ed4bc79b6
1 changed files with 1 additions and 1 deletions
|
@ -229,7 +229,7 @@ vim.api.nvim_create_autocmd('LspAttach', {
|
||||||
-- Move to the next diagnostic
|
-- Move to the next diagnostic
|
||||||
bufmap('n', ']d', '<cmd>lua vim.diagnostic.goto_next()<cr>')
|
bufmap('n', ']d', '<cmd>lua vim.diagnostic.goto_next()<cr>')
|
||||||
local client = vim.lsp.get_client_by_id(ev.data.client_id)
|
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>')
|
bufmap ('n', '<F3>', '<cmd>lua require("yaml-companion").open_ui_select()<cr>')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue