summaryrefslogtreecommitdiffstats
path: root/autoload/puppet/format.vim
diff options
context:
space:
mode:
Diffstat (limited to 'autoload/puppet/format.vim')
-rw-r--r--autoload/puppet/format.vim6
1 files changed, 2 insertions, 4 deletions
diff --git a/autoload/puppet/format.vim b/autoload/puppet/format.vim
index f60bd782..c608f228 100644
--- a/autoload/puppet/format.vim
+++ b/autoload/puppet/format.vim
@@ -1,7 +1,4 @@
-if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'puppet') != -1
- finish
-endif
-
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1
"
" Simple format using puppet's l:indents and align hashrockets function
function! puppet#format#Format() abort
@@ -59,3 +56,4 @@ function! puppet#format#Fallback(start_lnum, end_lnum) abort
endfunction
+endif