try to use ansiblels for ansible only

This commit is contained in:
Oliver Ladner 2024-03-14 08:54:46 +01:00
commit 8072531a1e
3 changed files with 13 additions and 6 deletions

View file

@ -69,3 +69,15 @@ vim.opt.splitright = true
-- Mode is shown in lualine, so we don't need it one line below
vim.opt.showmode = false
-- Hobo way to to force ansiblels being used for Ansible files
vim.filetype.add({
pattern = {
[".*/.*playbook.*.ya?ml"] = "yaml.ansible",
[".*/.*tasks.*/.*ya?ml"] = "yaml.ansible",
[".*/.*group_vars.*/.*ya?ml"] = "yaml.ansible",
[".*/.*host_vars.*/.*ya?ml"] = "yaml.ansible",
[".*/local.ya?ml"] = "yaml.ansible",
[".*-ansible/.*ya?ml"] = "yaml.ansible",
},
})