summaryrefslogtreecommitdiffstats
path: root/ftplugin/ansible.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ftplugin/ansible.vim')
-rw-r--r--ftplugin/ansible.vim6
1 files changed, 2 insertions, 4 deletions
diff --git a/ftplugin/ansible.vim b/ftplugin/ansible.vim
index 491cd803..7ee5166a 100644
--- a/ftplugin/ansible.vim
+++ b/ftplugin/ansible.vim
@@ -1,10 +1,8 @@
-if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'ansible') != -1
- finish
-endif
-
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ansible') == -1
" Slow yaml highlighting workaround
if exists('+regexpengine') && ('&regexpengine' == 0)
setlocal regexpengine=1
endif
set isfname+=@-@
set path+=./../templates,./../files,templates,files
+endif