mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 05:30:07 +08:00
Change gitk plugin
This commit is contained in:
parent
8f7bd8a8dd
commit
628551c4f2
@ -1,6 +1,6 @@
|
||||
function! SpaceVim#layers#git#plugins() abort
|
||||
let plugins = [
|
||||
\ ['cohama/agit.vim', { 'on_cmd' : ['Agit','AgitFile']}],
|
||||
\ ['junegunn/gv.vim', { 'on_cmd' : ['GV']}],
|
||||
\ ['airblade/vim-gitgutter', { 'merged' : 0}],
|
||||
\ ['tpope/vim-fugitive', { 'merged' : 0}],
|
||||
\ ]
|
||||
@ -47,8 +47,8 @@ function! SpaceVim#layers#git#config() abort
|
||||
call SpaceVim#mapping#space#def('nnoremap', ['g', 'M'], 'call call('
|
||||
\ . string(function('s:display_last_commit_of_current_line')) . ', [])',
|
||||
\ 'display the last commit message of the current line', 1)
|
||||
call SpaceVim#mapping#space#def('nnoremap', ['g', 'V'], 'AgitFile', 'View git log of current file', 1)
|
||||
call SpaceVim#mapping#space#def('nnoremap', ['g', 'v'], 'Agit', 'View git log of current repo', 1)
|
||||
call SpaceVim#mapping#space#def('nnoremap', ['g', 'V'], 'GV!', 'View git log of current file', 1)
|
||||
call SpaceVim#mapping#space#def('nnoremap', ['g', 'v'], 'GV', 'View git log of current repo', 1)
|
||||
endfunction
|
||||
|
||||
function! s:display_last_commit_of_current_line() abort
|
||||
|
Loading…
Reference in New Issue
Block a user