Skip to content

Commit c21f15d

Browse files
committed
Add docs on how to accept or reject changes
Closes #23
1 parent 41a5fff commit c21f15d

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,16 @@ hunk.setup({
116116
>
117117
> You can always press `g?` to get a help menu of the available commands
118118
119+
### Accepting / Rejecting Changes
120+
121+
Once you are happy with your selected set of hunks and/or lines you can accept the change by using the
122+
`key.global.accept` keybinding. See **[configuration](#configuration)** or press `g?` to see what this is bound to
123+
(default `<leader><Cr>`).
124+
125+
If Neovim exits with a non-0 exit code then the selection will be aborted and no changes will be written. You can use
126+
the `keys.global.quit` keybinding (default `q`) to exit with a non-0 exit code. This just calls `:cq` internally - so
127+
you can do that too.
128+
119129
### Highlights
120130

121131
Most of the hunk colors can be configured by defining your own highlight overrides. Refer to the below table for a list

0 commit comments

Comments
 (0)