From 3d3f1bf66cf5babbb4a44b0fce561efc200a7c1e Mon Sep 17 00:00:00 2001 From: Edward Litherland-Smith Date: Tue, 6 Apr 2021 09:56:07 +0100 Subject: [PATCH] Move jedi-vim to opt, only load if compiled with python3 --- .gitmodules | 2 +- pack/plugins/{start => opt}/jedi-vim | 0 vimrc | 4 ++++ 3 files changed, 5 insertions(+), 1 deletion(-) rename pack/plugins/{start => opt}/jedi-vim (100%) diff --git a/.gitmodules b/.gitmodules index 2ff97855..6a452b8a 100644 --- a/.gitmodules +++ b/.gitmodules @@ -32,7 +32,7 @@ path = pack/plugins/start/vim-tmux-navigator url = https://github.com/christoomey/vim-tmux-navigator.git [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 [submodule "vim_source"] path = vim_source diff --git a/pack/plugins/start/jedi-vim b/pack/plugins/opt/jedi-vim similarity index 100% rename from pack/plugins/start/jedi-vim rename to pack/plugins/opt/jedi-vim diff --git a/vimrc b/vimrc index 9ed3e5bf..109d71df 100644 --- a/vimrc +++ b/vimrc @@ -116,6 +116,10 @@ set noshowmode " Load all plugins now. " Plugins need to be added to runtimepath before helptags can be generated. packloadall + +if has('python3') + packadd! jedi-vim +endif " Load all of the helptags now, after plugins have been loaded. " All messages and errors will be ignored. silent! helptags ALL