From 48e07bc5014fecfdff24f75124a65634c216c9e2 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Fri, 6 Sep 2019 15:54:31 +0200 Subject: Improve guard to support concatenated files --- autoload/puppet/format.vim | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'autoload/puppet/format.vim') 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 -- cgit v1.2.3