mirror of
https://github.com/gryf/wombat256grf.git
synced 2025-12-17 11:30:19 +01:00
And finally renamed Y function to undercurl.
This commit is contained in:
@@ -180,14 +180,13 @@ fun s:highlight(group, fg, bg, attr)
|
|||||||
endfun
|
endfun
|
||||||
|
|
||||||
" same as above, but makes it for the spell-like things
|
" same as above, but makes it for the spell-like things
|
||||||
fun <SID>Y(group, bg)
|
fun s:undercurl(group, bg)
|
||||||
|
if a:bg != ""
|
||||||
if ! has('gui_running')
|
if ! has('gui_running')
|
||||||
if a:bg != ""
|
exec "highlight " . a:group . " ctermbg=" .
|
||||||
exec "hi ".a:group." ctermbg=".s:get_rgb_as_index(a:bg)
|
\s:get_rgb_as_index(a:bg)
|
||||||
endif
|
|
||||||
else
|
else
|
||||||
if a:bg != ""
|
exec "highlight " . a:group . " guisp=#" . a:bg . " gui=undercurl"
|
||||||
exec "hi ".a:group." guisp=#".a:bg." gui=undercurl"
|
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endfun
|
endfun
|
||||||
@@ -292,10 +291,10 @@ call s:highlight("DiffChange", "", "53402d", "bold")
|
|||||||
" Spellchek
|
" Spellchek
|
||||||
if version > 700
|
if version > 700
|
||||||
" spell, make it underline, and less bright colors. only for terminal
|
" spell, make it underline, and less bright colors. only for terminal
|
||||||
call <SID>Y("SpellBad", "881000")
|
call s:undercurl("SpellBad", "881000")
|
||||||
call <SID>Y("SpellCap", "003288")
|
call s:undercurl("SpellCap", "003288")
|
||||||
call <SID>Y("SpellRare", "73009F")
|
call s:undercurl("SpellRare", "73009F")
|
||||||
call <SID>Y("SpellLocal", "A0CC00")
|
call s:undercurl("SpellLocal", "A0CC00")
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Plugins:
|
" Plugins:
|
||||||
@@ -306,10 +305,10 @@ call s:highlight("ShowMarksHLo", "42ab47", "121212", "bold")
|
|||||||
call s:highlight("ShowMarksHLm", "aaab42", "121212", "bold")
|
call s:highlight("ShowMarksHLm", "aaab42", "121212", "bold")
|
||||||
|
|
||||||
" Syntastic
|
" Syntastic
|
||||||
call <SID>Y("SyntasticError ", "880000")
|
call s:undercurl("SyntasticError ", "880000")
|
||||||
call <SID>Y("SyntasticWarning", "886600")
|
call s:undercurl("SyntasticWarning", "886600")
|
||||||
call <SID>Y("SyntasticStyleError", "ff6600")
|
call s:undercurl("SyntasticStyleError", "ff6600")
|
||||||
call <SID>Y("SyntasticStyleWarning", "ffaa00")
|
call s:undercurl("SyntasticStyleWarning", "ffaa00")
|
||||||
call s:highlight("SyntasticErrorSign", "", "880000", "")
|
call s:highlight("SyntasticErrorSign", "", "880000", "")
|
||||||
call s:highlight("SyntasticWarningSign", "", "886600", "")
|
call s:highlight("SyntasticWarningSign", "", "886600", "")
|
||||||
call s:highlight("SyntasticStyleErrorSign", "", "ff6600", "")
|
call s:highlight("SyntasticStyleErrorSign", "", "ff6600", "")
|
||||||
@@ -317,7 +316,7 @@ call s:highlight("SyntasticStyleWarningSign", "", "ffaa00", "")
|
|||||||
|
|
||||||
|
|
||||||
" delete functions {{{
|
" delete functions {{{
|
||||||
delf <SID>Y
|
delf s:undercurl
|
||||||
delf s:highlight
|
delf s:highlight
|
||||||
delf s:get_rgb_as_index
|
delf s:get_rgb_as_index
|
||||||
delf s:get_color
|
delf s:get_color
|
||||||
|
|||||||
Reference in New Issue
Block a user