mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-07 03:04:30 +08:00
Setting to let user silence +python error.
If the user kicks off a version of vim with the jedi-vim plugin without having Python support compiled in, it gives an error which halts vim from starting up until it is dismissed. This commit adds a way to opt out of that warning for people who use the same configuration and plugins on different machines and different versions of vim.
This commit is contained in:
@@ -6,7 +6,9 @@
|
|||||||
" lies in the python files around it.
|
" lies in the python files around it.
|
||||||
|
|
||||||
if !has('python')
|
if !has('python')
|
||||||
|
if !exists("g:jedi#squelch_py_warning")
|
||||||
echomsg "Error: Required vim compiled with +python"
|
echomsg "Error: Required vim compiled with +python"
|
||||||
|
endif
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user