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 2107a4c commit 16231a6Copy full SHA for 16231a6
lua/astrocommunity/pack/ansible/init.lua
@@ -8,7 +8,7 @@ local function yaml_ft(path, bufnr)
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
11
- local regex = vim.regex "hosts:\\|tasks:"
+ local regex = vim.regex "^(hosts\\|tasks):"
12
if regex and regex:match_str(content) then return "yaml.ansible" end
13
14
-- return yaml if nothing else
0 commit comments