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:
parent
d13cf32d4f
commit
9f6faa4011
@ -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>
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user