1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-02 20:30:05 +08:00

fix(startify): fix StartifyEndOfBuffer highlight

the `StartifyEndOfBuffer` highlight group should be updated
when change colorscheme.

the startify function s:hide_endofbuffer_markers() should
be called when colorscheme changed.
This commit is contained in:
wsdjeg 2023-06-15 21:06:45 +08:00
parent 4d84b47a31
commit cb662c1083

View File

@ -59,6 +59,7 @@ function! SpaceVim#autocmds#init() abort
endif
autocmd BufWritePre * call SpaceVim#plugins#mkdir#CreateCurrent()
autocmd ColorScheme * call SpaceVim#api#import('vim#highlight').hide_in_normal('EndOfBuffer')
autocmd ColorScheme * call SpaceVim#api#import('vim#highlight').hide_in_normal('StartifyEndOfBuffer')
autocmd ColorScheme gruvbox,jellybeans,nord,srcery,NeoSolarized,one,SpaceVim call s:fix_colorschem_in_SpaceVim()
autocmd VimEnter * call SpaceVim#autocmds#VimEnter()
autocmd BufEnter * let b:_spacevim_project_name = get(g:, '_spacevim_project_name', '')