We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b25c9e7 commit bc828fcCopy full SHA for bc828fc
lua/astrocommunity/pack/ansible/init.lua
@@ -4,7 +4,7 @@ local function yaml_ft(path, bufnr)
4
if type(content) == "table" then content = table.concat(content, "\n") end
5
6
-- check if file is in roles, tasks, or handlers folder
7
- 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)/"
8
if path_regex and path_regex:match_str(path) then return "yaml.ansible" end
9
10
-- check for known ansible playbook text and if found, return yaml.ansible
0 commit comments