dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit db4c391dfbf753782aa98f7dab4df6316f32b341
parent ed19234b2fe20e234141e6c9241d4f01b2860a83
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Tue,  2 Mar 2021 23:22:36 +0100

vim: add highlight for struct

Diffstat:
Mvim/colors/jokull.schemer | 1+
Mvim/colors/jokull.vim | 7++++---
2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/vim/colors/jokull.schemer b/vim/colors/jokull.schemer @@ -98,6 +98,7 @@ GitGutterChangeDelete offlightred, bg " link group1,group2,... target group +link structure type link tabline tablinefill link repeat,conditional,operator statement link define,macro,precondit,preproc include diff --git a/vim/colors/jokull.vim b/vim/colors/jokull.vim @@ -73,15 +73,16 @@ hi! link preproc include hi! link number delimiter hi! link define include hi! link typedef structure -hi! link storageclass structure +hi! link repeat statement hi! link specialcomment delimiter hi! link pmenu statuslinenc +hi! link storageclass structure hi! link gitcommitOverflow errormsg hi! link macro include hi! link pmenusel statusline hi! link modemsg string hi! link character constant -hi! link repeat statement +hi! link structure type hi! link debug delimiter hi! link special delimiter hi! link label structure @@ -89,7 +90,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', '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'] +let s:DefinedColors=['precondit', 'tag', 'spellbad', 'spellocal', 'conditional', 'markdowncode', 'netrwdir', 'gitcommitsummary', 'netrwexe', 'tabline', 'mkdlink', 'signcolumn', 'spellcap', 'spellrare', 'netrwmarkfile', 'markdownurl', 'error', 'preproc', 'number', 'define', 'typedef', 'repeat', 'specialcomment', 'pmenu', 'storageclass', 'gitcommitoverflow', 'macro', 'pmenusel', 'modemsg', 'character', 'structure', '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')")