From 06770399fdbdce9d51321183e3ceaa6fd150c609 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 15 Mar 2024 22:40:44 +0800 Subject: [PATCH] perf(color): use `#ffffff` as default color --- autoload/SpaceVim/api/file.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/autoload/SpaceVim/api/file.vim b/autoload/SpaceVim/api/file.vim index f4fc6ac84..66afeb0bf 100644 --- a/autoload/SpaceVim/api/file.vim +++ b/autoload/SpaceVim/api/file.vim @@ -61,7 +61,7 @@ let s:gui_colors = { \ 'salmon' : '#EE6E73', \ 'green' : '#8FAA54', \ 'lightGreen' : '#31B53E', - \ 'default': synIDattr(hlID('Normal'), 'fg'), + \ 'default': '#ffffff', \ } let s:term_colors = { @@ -310,6 +310,8 @@ endfunction function! s:self.hi_icons() abort for [name, icon] in items(s:icons_color) + let str = printf('hi! SpaceVim_API_FILE_%s guifg=%s ctermfg=%s', name, icon.color, icon.term_color) + echom str call execute(printf('hi! SpaceVim_API_FILE_%s guifg=%s ctermfg=%s', name, icon.color, icon.term_color)) call execute(printf('call matchadd("SpaceVim_API_FILE_%s", "%s", 2)', name, icon.icon)) endfor