Add colorization for spelling errors when visibility is high.

Set:

    let g:solarized_visibility="high"

in your vimrc. Then, spelling mistakes are marked with reversed colors.

Fixes https://github.com/lifepillar/vim-solarized8/issues/25
This commit is contained in:
Lifepillar
2017-11-12 11:58:09 +01:00
parent 9a52140d78
commit c09e6ac686
8 changed files with 388 additions and 132 deletions

View File

@@ -86,6 +86,10 @@ endverbatim
CursorLineNr orange none bold
NonText orange none bold
SpecialKey orange none reverse
SpellBad violet base2 t=underline,reverse g=undercurl,reverse s=red
SpellCap violet base2 t=underline,reverse g=undercurl,reverse s=red
SpellLocal yellow base2 t=underline,reverse g=undercurl,reverse s=red
SpellRare cyan base2 t=underline,reverse g=undercurl,reverse s=red
Title yellow none bold
verbatim
elseif get(g:, "@optionprefix_visibility", "") == "low"
@@ -93,6 +97,10 @@ endverbatim
CursorLineNr base01 none bold
NonText base02 none bold
SpecialKey base02 none reverse
SpellBad violet none t=underline g=undercurl s=violet
SpellCap violet none t=underline g=undercurl s=violet
SpellLocal yellow none t=underline g=undercurl s=yellow
SpellRare cyan none t=underline g=undercurl s=cyan
Title base01 none bold
verbatim
else
@@ -100,6 +108,10 @@ endverbatim
CursorLineNr base0 none bold
NonText base00 none bold
SpecialKey base00 base02 bold
SpellBad violet none t=underline g=undercurl s=violet
SpellCap violet none t=underline g=undercurl s=violet
SpellLocal yellow none t=underline g=undercurl s=yellow
SpellRare cyan none t=underline g=undercurl s=cyan
Title yellow none bold
verbatim
endif
@@ -149,10 +161,6 @@ Question cyan none bold
QuickFixLine -> Search
Search yellow none reverse
SignColumn base0 none
SpellBad violet none undercurl s=violet
SpellCap violet none undercurl s=violet
SpellLocal yellow none undercurl s=yellow
SpellRare cyan none undercurl s=cyan
verbatim
if get(g:, "@optionprefix_statusline", "") == "low"
endverbatim
@@ -289,6 +297,10 @@ CursorLineNr red none bold
MatchParen orange base02 bold,underline
NonText red none bold
SpecialKey red none reverse
SpellBad violet base02 t=underline,reverse g=undercurl,reverse s=red
SpellCap violet base02 t=underline,reverse g=undercurl,reverse s=red
SpellLocal yellow base02 t=underline,reverse g=undercurl,reverse s=orange
SpellRare cyan base02 t=underline,reverse g=undercurl,reverse s=orange
Title orange none bold
verbatim
elseif get(g:, "@optionprefix_visibility", "") == "low"
@@ -306,6 +318,10 @@ CursorLineNr base01 none bold
MatchParen orange base02 bold
NonText base02 none bold
SpecialKey base02 none bold
SpellBad violet none t=underline g=undercurl s=violet
SpellCap violet none t=underline g=undercurl s=violet
SpellLocal yellow none t=underline g=undercurl s=yellow
SpellRare cyan none t=underline g=undercurl s=cyan
Title base01 none bold
# Normal visibility
verbatim
@@ -324,6 +340,10 @@ CursorLineNr base0 none bold
MatchParen base3 base02 bold
NonText base00 none bold
SpecialKey base00 base02 bold
SpellBad violet none t=underline g=undercurl s=violet
SpellCap violet none t=underline g=undercurl s=violet
SpellLocal yellow none t=underline g=undercurl s=yellow
SpellRare cyan none t=underline g=undercurl s=cyan
Title orange none bold
verbatim
endif
@@ -377,10 +397,6 @@ Question cyan none bold
QuickFixLine -> Search
Search yellow none reverse
SignColumn base0 none
SpellBad violet none undercurl s=violet
SpellCap violet none undercurl s=violet
SpellLocal yellow none undercurl s=yellow
SpellRare cyan none undercurl s=cyan
verbatim
if get(g:, "@optionprefix_statusline", "") == "low"
endverbatim