From 90b24287deb9da69a8079599b8525e2be412f7f2 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Tue, 12 Aug 2014 23:45:36 +0200 Subject: Update --- indent/puppet.vim | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'indent/puppet.vim') diff --git a/indent/puppet.vim b/indent/puppet.vim index 56ee46d5..cf49de88 100644 --- a/indent/puppet.vim +++ b/indent/puppet.vim @@ -76,6 +76,19 @@ function! GetPuppetIndent() if line =~ '^\s*}\s*els\(e\|if\).*{\s*$' let ind -= &sw endif + + " Don't indent resources that are one after another with a ->(ordering arrow) + " file {'somefile': + " ... + " } -> + " + " package { 'mycoolpackage': + " ... + " } + if line =~ '->$' + let ind -= &sw + endif + return ind endfunction -- cgit v1.2.3