1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 05:30:07 +08:00

Add gf support in windows for plugin manager

This commit is contained in:
wsdjeg 2017-12-27 11:53:48 +08:00
parent db1476eafe
commit 135e60831f

View File

@ -549,10 +549,11 @@ function! s:open_plugin_dir() abort
exe 'topleft split'
enew
exe 'resize ' . &lines * 30 / 100
let shell = empty($SHELL) ? SpaceVim#api#import('system').isWindows ? 'cmd.exe' : 'bash' : $SHELL
if has('nvim')
call termopen($SHELL, {'cwd' : dein#get(keys(plugin)[0]).path})
call termopen(shell, {'cwd' : dein#get(keys(plugin)[0]).path})
else
call term_start($SHELL, {'curwin' : 1, 'term_finish' : 'close'})
call term_start(shell, {'curwin' : 1, 'term_finish' : 'close', 'cwd' : dein#get(keys(plugin)[0]).path})
endif
endif
endfunction