1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 13:50:05 +08:00

fix(rtp): fix default rtp when starting

This commit is contained in:
Eric Wong 2024-03-21 19:19:30 +08:00
parent 0ad6c2adbb
commit 6a47dd47ca

View File

@ -30,8 +30,12 @@ if has('nvim')
else else
let &rtp = g:_spacevim_root_dir . ',' . $VIMRUNTIME let &rtp = g:_spacevim_root_dir . ',' . $VIMRUNTIME
endif endif
if has('win32')
let &rtp = &rtp . ',' . fnamemodify($VIMRUNTIME, ':h:h:h') . '\lib\nvim'
endif
call SpaceVim#logger#info('Loading SpaceVim from: ' . g:_spacevim_root_dir) call SpaceVim#logger#info('Loading SpaceVim from: ' . g:_spacevim_root_dir)
call SpaceVim#logger#info('default rtp is:')
call map(split(&rtp, ','), 'SpaceVim#logger#info(" > " . v:val)')
if has('vim_starting') if has('vim_starting')
" python host " python host
" @bug python2 error on neovim 0.6.1 " @bug python2 error on neovim 0.6.1