From 2d5e5caa2525057cb6c2b626047492ba089d4b95 Mon Sep 17 00:00:00 2001 From: Sonny Bakker Date: Sun, 16 Mar 2025 20:54:25 +0100 Subject: [PATCH] Add group_vars & host_vars for ansible file detection --- templates/nvim/lua/filetype.lua.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/nvim/lua/filetype.lua.j2 b/templates/nvim/lua/filetype.lua.j2 index f117509..2066b7c 100644 --- a/templates/nvim/lua/filetype.lua.j2 +++ b/templates/nvim/lua/filetype.lua.j2 @@ -22,6 +22,8 @@ vim.filetype.add { ['.*/tasks/.*.y(a?)ml'] = 'yaml.ansible', ['.*/vars/.*.y(a?)ml'] = 'yaml.ansible', + ['.*/host_vars/.*.y(a?)ml'] = 'yaml.ansible', + ['.*/group_vars/.*.y(a?)ml'] = 'yaml.ansible', ['.*/playbooks/.*.y(a?)ml'] = 'yaml.ansible', ['*.ansible.y(a?)ml'] = 'yaml.ansible',