Make MatchParen more visible in light themes with cursorline on.

In light themes, when cursorline is on and bold fonts are not used,
MatchParen highlighting is not visible. This commit solves the problem
by setting the foreground color to red, as in the original Solarized.

Fixes https://github.com/lifepillar/vim-solarized8/issues/15.
This commit is contained in:
Lifepillar
2017-05-25 10:26:15 +02:00
parent dc6c1dfa6f
commit 41ed17307e
5 changed files with 8 additions and 6 deletions

View File

@@ -496,11 +496,13 @@ for s:solarized_background in ["dark", "light"]
endfor
call s:put("endif")
" Changed by Lifepillar: better (in my opinion) highlighting for MatchParen:
" Changed by Lifepillar: better (in my opinion) highlighting for MatchParen
" (see also https://github.com/lifepillar/vim-solarized8/issues/11 and
" https://github.com/lifepillar/vim-solarized8/issues/15):
if s:solarized_background == 'dark'
call s:put("hi! MatchParen" .s:fmt_bold .s:fg_base3 .s:bg_base02)
else
call s:put("hi! MatchParen" .s:fmt_bold .s:fg_none .s:bg_base02)
call s:put("hi! MatchParen" .s:fmt_bold .s:fg_red .s:bg_base02)
endif
"}}}
" vim syntax highlighting "{{{