From 1c8d93964052996f45e60cd873b72d4df5bd2fd2 Mon Sep 17 00:00:00 2001 From: jyscao Date: Thu, 12 Sep 2019 18:41:22 +0800 Subject: [PATCH] Fix keybindings for GitGutter Hunks (#3049) --- autoload/SpaceVim/layers/git.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autoload/SpaceVim/layers/git.vim b/autoload/SpaceVim/layers/git.vim index e39f3d1f1..f68db9eea 100644 --- a/autoload/SpaceVim/layers/git.vim +++ b/autoload/SpaceVim/layers/git.vim @@ -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'], 'GitGutterStageHunk', 'stage-current-hunk', 0) - call SpaceVim#mapping#space#def('nmap', ['g', 'h', 'r'], 'GitGutterUndoHunk', 'undo-cursor-hunk', 0) - call SpaceVim#mapping#space#def('nmap', ['g', 'h', 'v'], 'GitGutterPreviewHunk', 'preview-cursor-hunk', 0) + call SpaceVim#mapping#space#def('nmap', ['g', 'h', 'a'], '(GitGutterStageHunk)', 'stage-current-hunk', 0) + call SpaceVim#mapping#space#def('nmap', ['g', 'h', 'r'], '(GitGutterUndoHunk)', 'undo-cursor-hunk', 0) + call SpaceVim#mapping#space#def('nmap', ['g', 'h', 'v'], '(GitGutterPreviewHunk)', 'preview-cursor-hunk', 0) endfunction function! SpaceVim#layers#git#set_variable(var) abort