Move jedi-vim to opt, only load if compiled with python3

This commit is contained in:
Edward Litherland-Smith 2021-04-06 09:56:07 +01:00
parent ed65ad8cc9
commit 3d3f1bf66c
3 changed files with 5 additions and 1 deletions

2
.gitmodules vendored
View file

@ -32,7 +32,7 @@
path = pack/plugins/start/vim-tmux-navigator path = pack/plugins/start/vim-tmux-navigator
url = https://github.com/christoomey/vim-tmux-navigator.git url = https://github.com/christoomey/vim-tmux-navigator.git
[submodule "pack/plugins/start/jedi-vim"] [submodule "pack/plugins/start/jedi-vim"]
path = pack/plugins/start/jedi-vim path = pack/plugins/opt/jedi-vim
url = https://github.com/davidhalter/jedi-vim.git url = https://github.com/davidhalter/jedi-vim.git
[submodule "vim_source"] [submodule "vim_source"]
path = vim_source path = vim_source

4
vimrc
View file

@ -116,6 +116,10 @@ set noshowmode
" Load all plugins now. " Load all plugins now.
" Plugins need to be added to runtimepath before helptags can be generated. " Plugins need to be added to runtimepath before helptags can be generated.
packloadall packloadall
if has('python3')
packadd! jedi-vim
endif
" Load all of the helptags now, after plugins have been loaded. " Load all of the helptags now, after plugins have been loaded.
" All messages and errors will be ignored. " All messages and errors will be ignored.
silent! helptags ALL silent! helptags ALL