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

Fix keybindings for GitGutter Hunks (#3049)

This commit is contained in:
jyscao 2019-09-12 18:41:22 +08:00 committed by Wang Shidong
parent 6541315fcd
commit 1c8d939640

View File

@ -85,9 +85,9 @@ function! SpaceVim#layers#git#config() abort
call SpaceVim#mapping#space#def('nnoremap', ['g', 'V'], 'GV!', 'git-log-of-current-file', 1)
call SpaceVim#mapping#space#def('nnoremap', ['g', 'v'], 'GV', 'git-log-of-current-repo', 1)
let g:_spacevim_mappings_space.g.h = {'name' : '+Hunks'}
call SpaceVim#mapping#space#def('nmap', ['g', 'h', 'a'], '<Plug>GitGutterStageHunk', 'stage-current-hunk', 0)
call SpaceVim#mapping#space#def('nmap', ['g', 'h', 'r'], '<Plug>GitGutterUndoHunk', 'undo-cursor-hunk', 0)
call SpaceVim#mapping#space#def('nmap', ['g', 'h', 'v'], '<Plug>GitGutterPreviewHunk', 'preview-cursor-hunk', 0)
call SpaceVim#mapping#space#def('nmap', ['g', 'h', 'a'], '<Plug>(GitGutterStageHunk)', 'stage-current-hunk', 0)
call SpaceVim#mapping#space#def('nmap', ['g', 'h', 'r'], '<Plug>(GitGutterUndoHunk)', 'undo-cursor-hunk', 0)
call SpaceVim#mapping#space#def('nmap', ['g', 'h', 'v'], '<Plug>(GitGutterPreviewHunk)', 'preview-cursor-hunk', 0)
endfunction
function! SpaceVim#layers#git#set_variable(var) abort