Skip to content

Commit

Permalink
mapping for fugitiveblame
Browse files Browse the repository at this point in the history
  • Loading branch information
mosheavni committed Apr 18, 2024
1 parent c028f56 commit f29c59d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .config/nvim/ftplugin/fugitiveblame.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
" Open diffview for the commit under the cursor
nnoremap <buffer> <cr> <Cmd>exe 'norm! 0"xyiw' <bar> wincmd l <bar> exe 'DiffviewOpen ' . getreg("x") . '^!'<CR>
" Open file history for the current file, from the commit under the cursor
nnoremap <buffer> <C-M-h> <Cmd>exe 'norm! 0"xyiw' <bar> wincmd l <bar> exe 'DiffviewFileHistory % --range=' . getreg("x")<CR>

0 comments on commit f29c59d

Please sign in to comment.