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

@@ -74,6 +74,10 @@ hi CursorLineNr ctermfg=@orange guifg=@orange cterm=bold gui=bold
endverbatim
NonText orange none bold
SpecialKey orange none reverse
SpellBad violet base3 t=underline,reverse g=undercurl,reverse s=red
SpellCap violet base3 t=underline,reverse g=undercurl,reverse s=red
SpellLocal yellow base3 t=underline,reverse g=undercurl,reverse s=red
SpellRare cyan base3 t=underline,reverse g=undercurl,reverse s=red
Title yellow none bold
verbatim
elseif get(g:, "@optionprefix_visibility", "") == "low"
@@ -81,6 +85,10 @@ hi CursorLineNr ctermfg=@base01 guifg=@base01 cterm=bold gui=bold
endverbatim
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
@@ -88,6 +96,10 @@ hi CursorLineNr ctermfg=@base0 guifg=@base0 cterm=bold gui=bold
endverbatim
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
@@ -154,10 +166,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
@@ -307,6 +315,10 @@ endverbatim
MatchParen base03 base00 bold
NonText red none bold
SpecialKey red none reverse
SpellBad magenta base03 t=underline,reverse g=undercurl,reverse s=violet
SpellCap magenta base03 t=underline,reverse g=undercurl,reverse s=violet
SpellLocal yellow base03 t=underline,reverse g=undercurl,reverse s=orange
SpellRare cyan base03 t=underline,reverse g=undercurl,reverse s=orange
Title orange none bold
# Low visibility
verbatim
@@ -325,6 +337,10 @@ endverbatim
MatchParen red base02 bold,underline
NonText base02 none bold
SpecialKey base02 none bold
SpellBad magenta none t=underline g=undercurl s=violet
SpellCap magenta 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
@@ -343,6 +359,10 @@ endverbatim
MatchParen red base02 bold,underline
NonText base00 none bold
SpecialKey base00 base02 bold
SpellBad magenta none t=underline g=undercurl s=violet
SpellCap magenta 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
@@ -393,10 +413,6 @@ Question cyan none bold
QuickFixLine -> Search
Search yellow none reverse
SignColumn base0 none
SpellBad magenta none undercurl s=violet
SpellCap magenta none undercurl s=violet
SpellLocal yellow none undercurl s=yellow
SpellRare cyan none undercurl s=cyan
verbatim
if get(g:, "@optionprefix_statusline", "") == "low"
endverbatim

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

View File

@@ -74,6 +74,10 @@ hi CursorLineNr ctermfg=@orange guifg=@orange cterm=bold gui=bold
endverbatim
NonText orange none bold
SpecialKey orange none reverse
SpellBad violet base3 t=underline,reverse g=undercurl,reverse s=red
SpellCap violet base3 t=underline,reverse g=undercurl,reverse s=red
SpellLocal yellow base3 t=underline,reverse g=undercurl,reverse s=red
SpellRare cyan base3 t=underline,reverse g=undercurl,reverse s=red
Title yellow none bold
verbatim
elseif get(g:, "@optionprefix_visibility", "") == "low"
@@ -81,6 +85,10 @@ hi CursorLineNr ctermfg=@base01 guifg=@base01 cterm=bold gui=bold
endverbatim
NonText base02 none bold
SpecialKey base02 none reverse
SpellBad violet none t=underline g=undercurl s=orange
SpellCap violet none t=underline g=undercurl s=orange
SpellLocal yellow none t=underline g=undercurl s=yellow
SpellRare cyan none t=underline g=undercurl s=cyan
Title base01 none bold
verbatim
else
@@ -88,6 +96,10 @@ hi CursorLineNr ctermfg=@base0 guifg=@base0 cterm=bold gui=bold
endverbatim
NonText base00 none bold
SpecialKey base00 base02 bold
SpellBad violet none t=underline g=undercurl s=orange
SpellCap violet none t=underline g=undercurl s=orange
SpellLocal yellow none t=underline g=undercurl s=yellow
SpellRare cyan none t=underline g=undercurl s=cyan
Title yellow none bold
verbatim
endif
@@ -154,10 +166,6 @@ Question cyan none bold
QuickFixLine -> Search
Search yellow none reverse
SignColumn base0 none
SpellBad violet none undercurl s=orange
SpellCap violet none undercurl s=orange
SpellLocal yellow none undercurl s=yellow
SpellRare cyan none undercurl s=cyan
verbatim
if get(g:, "@optionprefix_statusline", "") == "low"
endverbatim
@@ -307,6 +315,10 @@ endverbatim
MatchParen base03 base00 bold
NonText red none bold
SpecialKey red none reverse
SpellBad magenta base03 t=underline,reverse g=undercurl,reverse s=violet
SpellCap magenta base03 t=underline,reverse g=undercurl,reverse s=violet
SpellLocal yellow base03 t=underline,reverse g=undercurl,reverse s=orange
SpellRare cyan base03 t=underline,reverse g=undercurl,reverse s=orange
Title orange none bold
# Low visibility
verbatim
@@ -325,6 +337,10 @@ endverbatim
MatchParen red base02 bold,underline
NonText base02 none bold
SpecialKey base02 none bold
SpellBad magenta none t=underline g=undercurl s=violet
SpellCap magenta 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
@@ -343,6 +359,10 @@ endverbatim
MatchParen red base02 bold,underline
NonText base00 none bold
SpecialKey base00 base02 bold
SpellBad magenta none t=underline g=undercurl s=violet
SpellCap magenta 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
@@ -393,10 +413,6 @@ Question cyan none bold
QuickFixLine -> Search
Search yellow none reverse
SignColumn base0 none
SpellBad magenta none undercurl s=violet
SpellCap magenta none undercurl s=violet
SpellLocal yellow none undercurl s=yellow
SpellRare cyan none undercurl s=cyan
verbatim
if get(g:, "@optionprefix_statusline", "") == "low"
endverbatim

View File

@@ -77,6 +77,10 @@ hi CursorLineNr ctermfg=@orange guifg=@orange cterm=bold gui=bold
endverbatim
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"
@@ -84,6 +88,10 @@ hi CursorLineNr ctermfg=@base01 guifg=@base01 cterm=bold gui=bold
endverbatim
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
@@ -91,6 +99,10 @@ hi CursorLineNr ctermfg=@base0 guifg=@base0 cterm=bold gui=bold
endverbatim
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
@@ -154,10 +166,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
@@ -307,6 +315,10 @@ endverbatim
MatchParen base3 none bold,underline
NonText red none bold
SpecialKey red none reverse
SpellBad magenta base02 t=underline,reverse g=undercurl,reverse s=violet
SpellCap magenta base02 t=underline,reverse g=undercurl,reverse s=violet
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
# Low visibility
verbatim
@@ -325,6 +337,10 @@ endverbatim
MatchParen base3 base02 bold
NonText base02 none bold
SpecialKey base02 none bold
SpellBad magenta none t=underline g=undercurl s=violet
SpellCap magenta 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
@@ -343,6 +359,10 @@ endverbatim
MatchParen base3 base02 bold
NonText base00 none bold
SpecialKey base00 base02 bold
SpellBad magenta none t=underline g=undercurl s=violet
SpellCap magenta 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
@@ -393,10 +413,6 @@ Question cyan none bold
QuickFixLine -> Search
Search yellow none reverse
SignColumn base0 none
SpellBad magenta none undercurl s=violet
SpellCap magenta none undercurl s=violet
SpellLocal yellow none undercurl s=yellow
SpellRare cyan none undercurl s=cyan
verbatim
if get(g:, "@optionprefix_statusline", "") == "low"
endverbatim