Fire GitGutterStage User event after staging

Closes #698.
This commit is contained in:
Andy Stewart
2020-04-23 08:59:26 +01:00
parent 2b62481d38
commit 3599736179
3 changed files with 14 additions and 1 deletions

View File

@@ -177,7 +177,7 @@ Commands for folds:~
===============================================================================
AUTOCOMMAND *gitgutter-autocommand*
AUTOCOMMANDS *gitgutter-autocommands*
User GitGutter~
@@ -189,6 +189,10 @@ event GitGutter. You can listen for this event, for example:
A dictionary `g:gitgutter_hook_context` is made available during its execution,
which contains an entry `bufnr` that contains the buffer number being updated.
User GitGutterStage~
After staging a hunk or part of a hunk vim-gitgutter fires a |User| |autocmd|
with the event GitGutterStage. Staging always happens in the current buffer.
===============================================================================
MAPPINGS *gitgutter-mappings*