summaryrefslogtreecommitdiffstats
path: root/autoload/puppet
diff options
context:
space:
mode:
Diffstat (limited to 'autoload/puppet')
-rw-r--r--autoload/puppet/align.vim2
-rw-r--r--autoload/puppet/ctags.vim2
-rw-r--r--autoload/puppet/format.vim2
3 files changed, 6 insertions, 0 deletions
diff --git a/autoload/puppet/align.vim b/autoload/puppet/align.vim
index c45bc90f..b7dc1eda 100644
--- a/autoload/puppet/align.vim
+++ b/autoload/puppet/align.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1
+
function! puppet#align#IndentLevel(lnum)
return indent(a:lnum) / &shiftwidth
endfunction
@@ -67,4 +68,5 @@ function! puppet#align#AlignHashrockets(...) abort
endif
endfor
endfunction
+
endif
diff --git a/autoload/puppet/ctags.vim b/autoload/puppet/ctags.vim
index 469b1213..8f4d108f 100644
--- a/autoload/puppet/ctags.vim
+++ b/autoload/puppet/ctags.vim
@@ -1,5 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1
+
if !exists('s:ctags_type')
let s:ctags_type = 0
endif
@@ -35,4 +36,5 @@ function! puppet#ctags#Type()
return s:ctags_type
endfunction
+
endif
diff --git a/autoload/puppet/format.vim b/autoload/puppet/format.vim
index c608f228..cfd48155 100644
--- a/autoload/puppet/format.vim
+++ b/autoload/puppet/format.vim
@@ -1,4 +1,5 @@
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
@@ -56,4 +57,5 @@ function! puppet#format#Fallback(start_lnum, end_lnum) abort
endfunction
+
endif