Skip to content

Commit

Permalink
Merge pull request #1184 from SpaceVim/plugin_manager
Browse files Browse the repository at this point in the history
Add gf support in windows for plugin manager
  • Loading branch information
wsdjeg committed Dec 27, 2017
2 parents db1476e + 135e608 commit 921ef85
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions autoload/SpaceVim/plugins/manager.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 921ef85

Please sign in to comment.