Expose is-open and close hunk-preview-window functions

This allows custom maps for closing the hunk preview window.

See #784.
This commit is contained in:
Andy Stewart
2021-06-02 11:49:42 +01:00
parent d13d58a35f
commit 5b4ec87517
2 changed files with 14 additions and 8 deletions

View File

@@ -190,6 +190,12 @@ Commands for operating on a hunk:~
the original window with |CTRL-W_p|. Alternatively set
|g:gitgutter_close_preview_on_escape| and use <Esc>.
Two functions are available for your own logic:
>
gitgutter#hunk#is_preview_window_open()
gitgutter#hunk#close_hunk_preview_window()
<
Commands for folds:~
*gitgutter-:GitGutterFold*