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 " }}}