From 6a47dd47ca69be48e8ec4239facb1cb6518a1bc9 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 21 Mar 2024 19:19:30 +0800 Subject: [PATCH] fix(rtp): fix default rtp when starting --- init.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/init.vim b/init.vim index 95cf0a1ca..1ef5dc4ca 100644 --- a/init.vim +++ b/init.vim @@ -30,8 +30,12 @@ if has('nvim') else let &rtp = g:_spacevim_root_dir . ',' . $VIMRUNTIME 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('default rtp is:') +call map(split(&rtp, ','), 'SpaceVim#logger#info(" > " . v:val)') if has('vim_starting') " python host " @bug python2 error on neovim 0.6.1