mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-23 01:09:56 +08:00
fix(github): load github-issue only when has('python')
This commit is contained in:
parent
6388258786
commit
ce65aaadc8
@ -35,7 +35,7 @@
|
|||||||
|
|
||||||
function! SpaceVim#layers#github#plugins() abort
|
function! SpaceVim#layers#github#plugins() abort
|
||||||
return [
|
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', {
|
\ [g:_spacevim_root_dir . 'bundle/vim-github-dashboard', {
|
||||||
\ 'merged' : 0,
|
\ 'merged' : 0,
|
||||||
\ 'if' : has('ruby'),
|
\ 'if' : has('ruby'),
|
||||||
@ -75,8 +75,10 @@ function! SpaceVim#layers#github#config() abort
|
|||||||
" provides more powerful completion.
|
" provides more powerful completion.
|
||||||
let g:github_issues_no_omni = 1
|
let g:github_issues_no_omni = 1
|
||||||
|
|
||||||
|
if has('python')
|
||||||
call SpaceVim#mapping#space#def('nnoremap', ['g', 'h', 'i'], 'Gissues',
|
call SpaceVim#mapping#space#def('nnoremap', ['g', 'h', 'i'], 'Gissues',
|
||||||
\ 'show issues', 1)
|
\ 'show issues', 1)
|
||||||
|
endif
|
||||||
"" }}}
|
"" }}}
|
||||||
|
|
||||||
if has('ruby')
|
if has('ruby')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user