1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-02 22:30:04 +08:00

fix(github): load github-issue only when has('python')

This commit is contained in:
wsdjeg 2023-04-15 18:10:01 +08:00
parent 6388258786
commit ce65aaadc8

View File

@ -35,7 +35,7 @@
function! SpaceVim#layers#github#plugins() abort
return [
\ [g:_spacevim_root_dir . 'bundle/github-issues.vim', {'merged' : 0}],
\ [g:_spacevim_root_dir . 'bundle/github-issues.vim', {'merged' : 0, 'if' : has('python')}],
\ [g:_spacevim_root_dir . 'bundle/vim-github-dashboard', {
\ 'merged' : 0,
\ 'if' : has('ruby'),
@ -75,8 +75,10 @@ function! SpaceVim#layers#github#config() abort
" provides more powerful completion.
let g:github_issues_no_omni = 1
if has('python')
call SpaceVim#mapping#space#def('nnoremap', ['g', 'h', 'i'], 'Gissues',
\ 'show issues', 1)
endif
"" }}}
if has('ruby')