summaryrefslogtreecommitdiffstats
path: root/after/ftplugin/puppet.vim
diff options
context:
space:
mode:
Diffstat (limited to 'after/ftplugin/puppet.vim')
-rw-r--r--after/ftplugin/puppet.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/after/ftplugin/puppet.vim b/after/ftplugin/puppet.vim
index 6ddb64e0..8cbc9972 100644
--- a/after/ftplugin/puppet.vim
+++ b/after/ftplugin/puppet.vim
@@ -1,4 +1,6 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1
+if !polyglot#util#IsEnabled('puppet', expand('<sfile>:p'))
+ finish
+endif
if !exists('g:puppet_align_hashes')
let g:puppet_align_hashes = 1
@@ -7,5 +9,3 @@ endif
if g:puppet_align_hashes
inoremap <buffer> <silent> => =><Esc>:call puppet#align#AlignHashrockets()<CR>$a
endif
-
-endif