nvim: fugitive/gitsigns: Enable git blame line
Now that we dropped git-messenger, enable git blame line with fugitive and gitsigns.
This commit is contained in:
parent
ab56185c9e
commit
fe34c26993
2 changed files with 2 additions and 0 deletions
|
@ -18,6 +18,7 @@ nnoremap <Leader>gl :Git log --stat %<CR>
|
|||
nnoremap <Leader>gL :Git log --stat -n 100<CR>
|
||||
xnoremap <Leader>gl :<C-U>call git#git_log_range()<CR>
|
||||
xnoremap <Leader>gL :call git#git_log_named_block()<CR>
|
||||
nnoremap <Leader>gm :0,3Git blame<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>
|
||||
|
|
|
@ -58,6 +58,7 @@ require('gitsigns').setup {
|
|||
['n <Leader>ht'] = '<cmd>lua require"gitsigns".toggle_signs()<CR>',
|
||||
['n <Leader>hu'] = '<cmd>lua require"gitsigns".undo_stage_hunk()<CR>',
|
||||
['n <Leader>hU'] = '<cmd>lua require"gitsigns".reset_buffer_index()<CR>',
|
||||
['n <Leader>hb'] = '<cmd>lua require"gitsigns".blame_line()<CR>',
|
||||
|
||||
['o ih'] = ':<C-U>lua require"gitsigns.actions".select_hunk()<CR>',
|
||||
['x ih'] = ':<C-U>lua require"gitsigns.actions".select_hunk()<CR>'
|
||||
|
|
Loading…
Reference in a new issue