commit a1292a9928b870d0acb04948a6e863ac780adce8
parent 7c67234d6837ef9f9e784efbe5a59fd2d636a730
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Fri, 9 Oct 2020 15:39:13 +0200
vim: light colorscheme change for commit message
Former-commit-id: 37388e5e121ff75986a0114c0d85457b20a3b19a
Diffstat:
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/vim/colors/jokull.schemer b/vim/colors/jokull.schemer
@@ -114,3 +114,5 @@ link markdowncode,mkdlink,vimwikilink type
link pmenu statuslinenc
link pmenusel statusline
link error errormsg
+link gitcommitSummary include
+link gitcommitOverflow errormsg
diff --git a/vim/colors/jokull.vim b/vim/colors/jokull.vim
@@ -59,6 +59,7 @@ hi! link spellocal string
hi! link conditional statement
hi! link markdowncode type
hi! link netrwdir function
+hi! link gitcommitSummary include
hi! link netrwexe title
hi! link tabline tablinefill
hi! link mkdlink type
@@ -75,6 +76,7 @@ hi! link typedef structure
hi! link storageclass structure
hi! link specialcomment delimiter
hi! link pmenu statuslinenc
+hi! link gitcommitOverflow errormsg
hi! link macro include
hi! link pmenusel statusline
hi! link modemsg string
@@ -87,7 +89,7 @@ hi! link operator statement
hi! link vimwikilink type
hi! link specialchar delimiter
" Code to clear any groups that are not defined
-let s:DefinedColors=['precondit', 'tag', 'spellbad', 'spellocal', 'conditional', 'markdowncode', 'netrwdir', 'netrwexe', 'tabline', 'mkdlink', 'signcolumn', 'spellcap', 'spellrare', 'netrwmarkfile', 'markdownurl', 'error', 'preproc', 'number', 'define', 'typedef', 'storageclass', 'specialcomment', 'pmenu', 'macro', 'pmenusel', 'modemsg', 'character', 'repeat', 'debug', 'special', 'label', 'operator', 'vimwikilink', 'specialchar', 'normal', 'cursorline', 'string', 'identifier', 'function', 'statement', 'include', 'type', 'search', 'incsearch', 'folded', 'tablinefill', 'tablinesel', 'wildmenu', 'linenr', 'vertsplit', 'todo', 'nontext', 'statusline', 'statuslinenc', 'statuslinetermnc', 'statuslineterm', 'statuslinefile', 'statuslinenormmode', 'visual', 'title', 'matchparen', 'qffilename', 'delimiter', 'comment', 'errormsg', 'cursorlinenr', 'specialkey', 'constant', 'diffadd', 'diffdelete', 'diffchange', 'difftext', 'gitgutteradd', 'gitgutterchange', 'gitgutterdelete', 'gitgutterchangedelete']
+let s:DefinedColors=['precondit', 'tag', 'spellbad', 'spellocal', 'conditional', 'markdowncode', 'netrwdir', 'gitcommitsummary', 'netrwexe', 'tabline', 'mkdlink', 'signcolumn', 'spellcap', 'spellrare', 'netrwmarkfile', 'markdownurl', 'error', 'preproc', 'number', 'define', 'typedef', 'storageclass', 'specialcomment', 'pmenu', 'gitcommitoverflow', 'macro', 'pmenusel', 'modemsg', 'character', 'repeat', 'debug', 'special', 'label', 'operator', 'vimwikilink', 'specialchar', 'normal', 'cursorline', 'string', 'identifier', 'function', 'statement', 'include', 'type', 'search', 'incsearch', 'folded', 'tablinefill', 'tablinesel', 'wildmenu', 'linenr', 'vertsplit', 'todo', 'nontext', 'statusline', 'statuslinenc', 'statuslinetermnc', 'statuslineterm', 'statuslinefile', 'statuslinenormmode', 'visual', 'title', 'matchparen', 'qffilename', 'delimiter', 'comment', 'errormsg', 'cursorlinenr', 'specialkey', 'constant', 'diffadd', 'diffdelete', 'diffchange', 'difftext', 'gitgutteradd', 'gitgutterchange', 'gitgutterdelete', 'gitgutterchangedelete']
function! s:ClearUndefinedColors(colors)
let undefined_groups = filter(a:colors->keys()->map('tolower(v:val)'), 'index(s:DefinedColors, tolower(v:val)) < 0')
call map(undefined_groups, "execute('highlight' . ' ' . v:val . ' ' . 'NONE')")