Kaynağa Gözat

indent guides defaults

Pavel Pertsev 10 yıl önce
ebeveyn
işleme
5e20a2b15d
1 değiştirilmiş dosya ile 9 ekleme ve 7 silme
  1. 9 7
      colors/gruvbox.vim

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