From cf7a7ae0e92bf09f5f7d710113fcad794d3e3b77 Mon Sep 17 00:00:00 2001 From: Lucas do Amaral Saboya Date: Sun, 8 Dec 2024 13:27:24 -0300 Subject: [PATCH] fix(pack): Fix path_regex regular expression --- lua/astrocommunity/pack/ansible/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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