From 5e20a2b15d23d546dd9e7b57ed2df67c7c58e445 Mon Sep 17 00:00:00 2001 From: Pavel Pertsev Date: Wed, 13 May 2015 22:31:37 +0300 Subject: [PATCH] indent guides defaults --- colors/gruvbox.vim | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/colors/gruvbox.vim b/colors/gruvbox.vim index a3acab18..5af4fee4 100644 --- a/colors/gruvbox.vim +++ b/colors/gruvbox.vim @@ -590,14 +590,16 @@ hi! link SneakStreakStatusLine Search " }}} " Indent Guides: {{{ -let g:indent_guides_auto_colors = 0 +if !exists('g:indent_guides_auto_colors') + let g:indent_guides_auto_colors = 0 -if g:gruvbox_invert_indent_guides == 0 - call s:HL('IndentGuidesOdd', 'bg', 'dark2') - call s:HL('IndentGuidesEven', 'bg', 'dark1') -else - call s:HL('IndentGuidesOdd', 'bg', 'dark2', 'inverse') - call s:HL('IndentGuidesEven', 'bg', 'dark3', 'inverse') + if g:gruvbox_invert_indent_guides == 0 + call s:HL('IndentGuidesOdd', 'bg', 'dark2') + call s:HL('IndentGuidesEven', 'bg', 'dark1') + else + call s:HL('IndentGuidesOdd', 'bg', 'dark2', 'inverse') + call s:HL('IndentGuidesEven', 'bg', 'dark3', 'inverse') + endif endif " }}}