1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 02:30:03 +08:00

Load jedi-vim only when has +py or +py3

This commit is contained in:
wsdjeg 2017-07-13 04:28:21 +08:00
parent 02bea94009
commit 81053136b3

View File

@ -13,7 +13,7 @@ function! SpaceVim#layers#lang#python#plugins() abort
if has('nvim')
call add(plugins, ['zchee/deoplete-jedi', { 'on_ft' : 'python'}])
else
call add(plugins, ['davidhalter/jedi-vim', { 'on_ft' : 'python'}])
call add(plugins, ['davidhalter/jedi-vim', { 'on_ft' : 'python', 'if' : has('python') || has('python3')}])
endif
call add(plugins, ['Vimjas/vim-python-pep8-indent', { 'on_ft' : 'python'}])
return plugins