mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 03:23:47 -05:00
@@ -533,6 +533,8 @@ let g:gitgutter_async = 0
|
||||
|
||||
Add `let g:gitgutter_preview_win_floating = 1` to your `~/.vimrc`. Note that on Vim this prevents you staging (partial) hunks via the preview window.
|
||||
|
||||
On Neovim, the preview hunk command will move the cursor into the floating window if it is already open.
|
||||
|
||||
|
||||
#### The appearance of a floating/popup window for hunk previews
|
||||
|
||||
|
||||
@@ -201,7 +201,9 @@ Commands for operating on a hunk:~
|
||||
:GitGutterUndoHunk Undo the hunk the cursor is in.
|
||||
|
||||
*gitgutter-:GitGutterPreviewHunk*
|
||||
:GitGutterPreviewHunk Preview the hunk the cursor is in.
|
||||
:GitGutterPreviewHunk Preview the hunk the cursor is in or, if you are using
|
||||
floating preview windows in Neovim and the window is
|
||||
already open, move the cursor into the window.
|
||||
|
||||
To stage part of the hunk, move to the preview window,
|
||||
delete any lines you do not want to stage, and
|
||||
|
||||
Reference in New Issue
Block a user