mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 08:30:06 +08:00
Close #467
This commit is contained in:
parent
90ad032a1a
commit
4ece47ba3d
@ -372,6 +372,8 @@ function! SpaceVim#loadCustomConfig() abort
|
|||||||
let custom_confs = SpaceVim#util#globpath(getcwd(), '.SpaceVim.d/init.vim')
|
let custom_confs = SpaceVim#util#globpath(getcwd(), '.SpaceVim.d/init.vim')
|
||||||
let custom_glob_conf_old = expand('~/.local.vim')
|
let custom_glob_conf_old = expand('~/.local.vim')
|
||||||
let custom_glob_conf = expand('~/.SpaceVim.d/init.vim')
|
let custom_glob_conf = expand('~/.SpaceVim.d/init.vim')
|
||||||
|
|
||||||
|
if has('timers')
|
||||||
if !filereadable(custom_glob_conf_old) && !filereadable(custom_glob_conf)
|
if !filereadable(custom_glob_conf_old) && !filereadable(custom_glob_conf)
|
||||||
" if there is no custom config auto generate it.
|
" if there is no custom config auto generate it.
|
||||||
augroup SpaceVimBootstrap
|
augroup SpaceVimBootstrap
|
||||||
@ -379,6 +381,7 @@ function! SpaceVim#loadCustomConfig() abort
|
|||||||
au VimEnter * call timer_start(10, function('SpaceVim#custom#autoconfig'))
|
au VimEnter * call timer_start(10, function('SpaceVim#custom#autoconfig'))
|
||||||
augroup END
|
augroup END
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
" the old value will be remove
|
" the old value will be remove
|
||||||
if filereadable(custom_glob_conf_old)
|
if filereadable(custom_glob_conf_old)
|
||||||
exe 'source ' . custom_glob_conf_old
|
exe 'source ' . custom_glob_conf_old
|
||||||
|
Loading…
Reference in New Issue
Block a user