1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 13:00:04 +08:00

fix(tools): check python3 first

This commit is contained in:
wsdjeg 2022-04-11 17:55:33 +08:00
parent 97ebba23e6
commit 86077076e2

View File

@ -28,10 +28,10 @@ function! SpaceVim#layers#tools#plugins() abort
call add(plugins, [g:_spacevim_root_dir . 'bundle/vim-bookmarks',
\ {'merged': 0,
\ 'loadconf_before' : 1}])
if s:CMP.has('python')
call add(plugins, ['gregsexton/VimCalc', {'on_cmd' : 'Calc'}])
elseif s:CMP.has('python3')
if s:CMP.has('python3')
call add(plugins, ['fedorenchik/VimCalc3', {'on_cmd' : 'Calc'}])
elseif s:CMP.has('python')
call add(plugins, ['gregsexton/VimCalc', {'on_cmd' : 'Calc'}])
endif
return plugins