-
-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allows `nav_hunk` to target staged, unstaged or all hunks.
- Loading branch information
Showing
2 changed files
with
36 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9291836
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know how to trigger this ...
I tried
:Gitsigns nav_hunk('next')
:Gitsigns nav_hunk('next', {targeted} = 'staged')
When i just do
:Gitsigns nav_hunk It says no more hunks
Am i making a fundamental error in thinking this is available in the nvim command line in progress options?
9291836
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:Gitsigns nav_hunk next target=staged
or
:lua require('gitsigns').nav_huk('next', { target = 'staged' })
9291836
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So the key here is removing the brackets and the quotations when in commandlinemode