feat: git blame in status bar, shortcut and git blame doc

This commit is contained in:
hophacker 2021-12-31 15:32:39 +08:00
parent e4cc2792be
commit fdc1eca0aa
3 changed files with 7 additions and 1 deletions

View File

@ -218,10 +218,11 @@ Shortcut | Function
:-----------:|:--------:
SPC h I | Show Debug Info
**Git**
**Git Blame**
Shortcut | Function
:-------:|:--------:
<leader> b | Togggle git blame info at the end of current line
<leader> s | See Git Blame information in the status bar for the currently selected line.
<SPC> gb | Open git blame window
#### markdown

View File

@ -319,3 +319,5 @@ vmap <localleader>js :!python -m json.tool<cr>
" nvim-blame-line
nnoremap <silent> <leader>b :ToggleBlameLine<CR>
nnoremap <silent> <leader>s ::<C-u>call gitblame#echo()<CR>

View File

@ -101,3 +101,6 @@ name = "lang#python"
[[custom_plugins]]
repo = "https://github.com/tveskag/nvim-blame-line.git"
merged = false
[[custom_plugins]]
repo = "https://github.com/zivyangll/git-blame.vim"