Add jedi#reinit_python

This is meant to be used in case you want to re-init the Python version
used by jedi-vim, without restarting Vim.

I had this laying around.. it might be better to just export
`s:init_python` as `jedi#init_python`?!
This commit is contained in:
Daniel Hahler
2015-08-19 23:58:47 +02:00
parent 7890339ca8
commit 83e62d56ba

View File

@@ -101,6 +101,12 @@ function! s:init_python()
endfunction
function! jedi#reinit_python()
unlet! s:_init_python
call jedi#init_python()
endfunction
function! jedi#init_python()
if !exists('s:_init_python')
try