From c13465348d9a8239eaa01fe0838168c7e0eaa7b6 Mon Sep 17 00:00:00 2001 From: Wang Shidong Date: Sat, 4 Jul 2020 13:29:52 +0800 Subject: [PATCH] Fix SPC g m key binding (#3607) this key binding should only work when using git.vim --- autoload/SpaceVim/layers/git.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/SpaceVim/layers/git.vim b/autoload/SpaceVim/layers/git.vim index 3cd816228..d1ff1790f 100644 --- a/autoload/SpaceVim/layers/git.vim +++ b/autoload/SpaceVim/layers/git.vim @@ -84,6 +84,7 @@ function! SpaceVim#layers#git#config() abort call SpaceVim#mapping#space#def('nnoremap', ['g', 'b'], 'Git blame', 'view-git-blame', 1) call SpaceVim#mapping#space#def('nnoremap', ['g', 'V'], 'Git log %', 'git-log-of-current-file', 1) call SpaceVim#mapping#space#def('nnoremap', ['g', 'v'], 'Git log', 'git-log-of-current-repo', 1) + call SpaceVim#mapping#space#def('nnoremap', ['g', 'm'], 'Git branch', 'branch-manager', 1) endif augroup spacevim_layer_git autocmd! @@ -110,7 +111,6 @@ function! SpaceVim#layers#git#config() abort call SpaceVim#mapping#space#def('nmap', ['g', 'h', l:stage_hunk_key], '(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('nnoremap', ['g', 'm'], 'Git branch', 'branch-manager', 1) endfunction function! SpaceVim#layers#git#set_variable(var) abort