forked from VimPlug/jedi-vim
Warning if Jedi is not installed.
This commit is contained in:
1 parent
0b8448804d
commit
5993b0c599
1 file changed
+4
-1
+4
-1
@@ -194,7 +194,10 @@ import traceback
|
||||
|
||||
# update the sys path to include the jedi_vim script
|
||||
sys.path.insert(1, os.path.join(vim.eval('expand("<sfile>:p:h:h")'), 'plugin'))
|
||||
import jedi_vim
|
||||
try:
|
||||
import jedi_vim
|
||||
except ImportError:
|
||||
vim.eval('echom "Please install Jedi if you want to use jedi_vim."')
|
||||
sys.path.pop(1)
|
||||
|
||||
PYTHONEOF
|
||||
|
||||
Reference in new issue
Block a user