~sanchayanmaity/dotfiles

86a89f99ab43506ef1a2e3f66bd56474bf41eef3 — Sanchayan Maity a month ago 211cd39
nvim: after/plugin/fugitive: Add mapping for git grep

The rebase abort mapping is not really required as fugitive already
provides the `ra` mapping when in git status window to abort rebase.
Use the `gr` mapping for git grep and `gR` for rebasing to origin.
1 files changed, 2 insertions(+), 2 deletions(-)

M nvim/.config/nvim/after/plugin/fugitive.vim
M nvim/.config/nvim/after/plugin/fugitive.vim => nvim/.config/nvim/after/plugin/fugitive.vim +2 -2
@@ 24,8 24,8 @@ nnoremap <Leader>gm :0,3Git blame<CR><C-w>j<CR>
nnoremap <Leader>gM :call git#git_merge_origin()<CR>
nnoremap <Leader>gn :Git branch -m<SPACE>
nnoremap <Leader>go :call git#git_log_compare()<CR>
nnoremap <Leader>gr :call git#git_rebase_origin()<CR>
nnoremap <Leader>gR :Git rebase --abort<CR>
nnoremap <Leader>gr :Ggrep! -q<SPACE>
nnoremap <Leader>gR :call git#git_rebase_origin()<CR>
nnoremap <Leader>g- :call git#git_stash()<CR>:e<CR>
nnoremap <Leader>g+ :Git stash pop stash@
nnoremap <Leader>gs :Git stash list<CR>