mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-12 17:55:41 +08:00
Check python3 first (#4208)
This commit is contained in:
parent
d13cf32d4f
commit
9f6faa4011
@ -41,7 +41,7 @@ function! SpaceVim#layers#edit#plugins() abort
|
||||
if g:spacevim_enable_bepo_layout
|
||||
call add(plugins,[g:_spacevim_root_dir . 'bundle/vim-bepo', { 'merged' : 0}])
|
||||
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'}])
|
||||
else
|
||||
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>
|
||||
else
|
||||
nnoremap <silent> <F7> :UndotreeToggle<CR>
|
||||
|
@ -16,7 +16,7 @@ let s:CMP = SpaceVim#api#import('vim#compatible')
|
||||
|
||||
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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user