mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 22:30: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:
parent
7c9058447b
commit
5f1a7433e1
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user