Parcourir la source

IndentLine defaults only applied if not supplied by user

Isaac Hess il y a 10 ans
Parent
commit
92700c007a
1 fichiers modifiés avec 6 ajouts et 2 suppressions
  1. 6 2
      colors/gruvbox.vim

+ 6 - 2
colors/gruvbox.vim

@@ -607,8 +607,12 @@ endif
 " }}}
 " IndentLine: {{{
 
-let g:indentLine_color_term = s:gb.dark2[1]
-let g:indentLine_color_gui = '#' . s:gb.dark2[0]
+if !exists('g:indentLine_color_term')
+	let g:indentLine_color_term = s:gb.dark2[1]
+endif
+if !exists('g:indentLine_color_gui')
+	let g:indentLine_color_gui = '#' . s:gb.dark2[0]
+endif
 
 " }}}
 " Rainbow Parentheses: {{{