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

Check python3 first (#4208)

This commit is contained in:
Wang Shidong 2021-04-13 23:24:58 +08:00 committed by GitHub
parent d13cf32d4f
commit 9f6faa4011
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ function! SpaceVim#layers#edit#plugins() abort
if g:spacevim_enable_bepo_layout if g:spacevim_enable_bepo_layout
call add(plugins,[g:_spacevim_root_dir . 'bundle/vim-bepo', { 'merged' : 0}]) call add(plugins,[g:_spacevim_root_dir . 'bundle/vim-bepo', { 'merged' : 0}])
endif endif
if s:CMP.has('python') || s:CMP.has('python3') if s:CMP.has('python3') || s:CMP.has('python')
call add(plugins,[g:_spacevim_root_dir . 'bundle/vim-mundo', { 'on_cmd' : 'MundoToggle'}]) call add(plugins,[g:_spacevim_root_dir . 'bundle/vim-mundo', { 'on_cmd' : 'MundoToggle'}])
else else
call add(plugins,[g:_spacevim_root_dir . 'bundle/undotree', { 'on_cmd' : 'UndotreeToggle'}]) call add(plugins,[g:_spacevim_root_dir . 'bundle/undotree', { 'on_cmd' : 'UndotreeToggle'}])
@ -75,7 +75,7 @@ function! SpaceVim#layers#edit#config() abort
" }}} " }}}
if s:CMP.has('python') || s:CMP.has('python3') if s:CMP.has('python3') || s:CMP.has('python')
nnoremap <silent> <F7> :MundoToggle<CR> nnoremap <silent> <F7> :MundoToggle<CR>
else else
nnoremap <silent> <F7> :UndotreeToggle<CR> nnoremap <silent> <F7> :UndotreeToggle<CR>

View File

@ -16,7 +16,7 @@ let s:CMP = SpaceVim#api#import('vim#compatible')
function! SpaceVim#layers#leaderf#loadable() abort function! SpaceVim#layers#leaderf#loadable() abort
return s:CMP.has('python') || s:CMP.has('python3') return s:CMP.has('python3') || s:CMP.has('python')
endfunction endfunction