1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 17:20:04 +08:00

fix(autocmd): fix colorscheme autocmd

The SpaceVim_core autocmd group is definded too late and
should have been defined before changing the colorscheme.
This commit is contained in:
wsdjeg 2022-01-02 16:42:59 +08:00
parent 7c9058447b
commit 5f1a7433e1

View File

@ -1449,6 +1449,9 @@ function! SpaceVim#end() abort
set guicolors
endif
endif
call SpaceVim#autocmds#init()
if g:spacevim_colorscheme !=# '' "{{{
try
exec 'set background=' . g:spacevim_colorscheme_bg
@ -1470,10 +1473,6 @@ function! SpaceVim#end() abort
endif
endif
call SpaceVim#autocmds#init()
if !has('nvim-0.2.0') && !has('nvim')
" In old version of neovim, &guicursor do not support cursor shape
" setting.