fix(ansible): ansiblels not loading, keymap desc.

If lazy extras yaml is enabled, yamlls was being loaded not ansiblels.

Add ft = {} to nvim-ansible spec allows ft=yaml.ansible to be detected.

Re-mapped nvim-ansible plugin key to not conflict with neotest.

Added a description for the keymap.
This commit is contained in:
Jordan McAlpine 2024-03-15 09:47:55 -04:00 committed by Jordan McAlpine
parent 0107a1079b
commit 8dc8165de4

View file

@ -25,12 +25,14 @@ return {
}, },
{ {
"mfussenegger/nvim-ansible", "mfussenegger/nvim-ansible",
ft = {},
keys = { keys = {
{ {
"<leader>tr", "<leader>ta",
function() function()
require("ansible").run() require("ansible").run()
end, end,
desc = "Ansible Run Playbook/Role",
silent = true, silent = true,
}, },
}, },