forked from VimPlug/jedi-vim
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:
1 parent
7890339ca8
commit
83e62d56ba
1 file changed
+6
@@ -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
|
||||
|
||||
Reference in new issue
Block a user