mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 13:00:04 +08:00
Add support for custom dir
This commit is contained in:
parent
438f3fdf2b
commit
d9093a1103
@ -140,9 +140,16 @@ function! SpaceVim#loadCustomConfig() abort
|
||||
if filereadable(custom_glob_conf)
|
||||
exe 'source ' . custom_glob_conf
|
||||
endif
|
||||
if isdirectory(expand('~/.SpaceVim.d/'))
|
||||
set runtimepath^=~/.SpaceVim.d
|
||||
endif
|
||||
|
||||
if !empty(custom_confs)
|
||||
exe 'source ' . custom_confs[0]
|
||||
endif
|
||||
if isdirectory('.SpaceVim.d')
|
||||
exe 'set rtp ^=' . expand('.SpaceVim.d')
|
||||
endif
|
||||
endfunction
|
||||
|
||||
""
|
||||
|
Loading…
Reference in New Issue
Block a user