From cb662c1083a754467871d3d079e1ddb14bd088d6 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Thu, 15 Jun 2023 21:06:45 +0800 Subject: [PATCH] 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. --- autoload/SpaceVim/autocmds.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/autoload/SpaceVim/autocmds.vim b/autoload/SpaceVim/autocmds.vim index 435010052..4ab698554 100644 --- a/autoload/SpaceVim/autocmds.vim +++ b/autoload/SpaceVim/autocmds.vim @@ -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', '')