diff --git a/lua/astrocommunity/pack/ansible/init.lua b/lua/astrocommunity/pack/ansible/init.lua index 5ed6fa394..31a3a3ac0 100644 --- a/lua/astrocommunity/pack/ansible/init.lua +++ b/lua/astrocommunity/pack/ansible/init.lua @@ -4,7 +4,7 @@ local function yaml_ft(path, bufnr) if type(content) == "table" then content = table.concat(content, "\n") end -- check if file is in roles, tasks, or handlers folder - local path_regex = vim.regex "(ansible\\|group_vars\\|handlers\\|host_vars\\|playbooks\\|roles\\|\\vars\\|tasks)/" + local path_regex = vim.regex "(ansible\\|group_vars\\|handlers\\|host_vars\\|playbooks\\|roles\\|vars\\|tasks)/" if path_regex and path_regex:match_str(path) then return "yaml.ansible" end -- check for known ansible playbook text and if found, return yaml.ansible