From fdc1eca0aaa4c09feb03390295f50d3e7448495b Mon Sep 17 00:00:00 2001 From: hophacker Date: Fri, 31 Dec 2021 15:32:39 +0800 Subject: [PATCH] feat: git blame in status bar, shortcut and git blame doc --- README.md | 3 ++- SpaceVim.d/autoload/settings/yadr-keymap.vim | 2 ++ SpaceVim.d/init.toml | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c950552..a10dee3 100644 --- a/README.md +++ b/README.md @@ -218,10 +218,11 @@ Shortcut | Function :-----------:|:--------: SPC h I | Show Debug Info -**Git** +**Git Blame** Shortcut | Function :-------:|:--------: b | Togggle git blame info at the end of current line + s | See Git Blame information in the status bar for the currently selected line. gb | Open git blame window #### markdown diff --git a/SpaceVim.d/autoload/settings/yadr-keymap.vim b/SpaceVim.d/autoload/settings/yadr-keymap.vim index 66f09db..6f349eb 100644 --- a/SpaceVim.d/autoload/settings/yadr-keymap.vim +++ b/SpaceVim.d/autoload/settings/yadr-keymap.vim @@ -319,3 +319,5 @@ vmap js :!python -m json.tool " nvim-blame-line nnoremap b :ToggleBlameLine +nnoremap s ::call gitblame#echo() + diff --git a/SpaceVim.d/init.toml b/SpaceVim.d/init.toml index d79dfe7..8e16068 100644 --- a/SpaceVim.d/init.toml +++ b/SpaceVim.d/init.toml @@ -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"