feat(hunks)!: highlight inline overlay diffs

BREAKING CHANGE: rename :GitDiffOverlay to :GitHunkOverlay and <Plug>(git-diff-overlay) to <Plug>(git-hunk-overlay).
This commit is contained in:
2026-05-29 14:59:18 +02:00
parent e6616e260b
commit 351b5690c2
4 changed files with 256 additions and 16 deletions
+3 -3
View File
@@ -7,7 +7,7 @@ Features:
- Status sidebar with stage/unstage/discard actions
- Log viewer
- Diff splits against any revision, the index, or the worktree
- Gutter signs + optional diff overlay
- Gutter signs + optional hunk overlay
- Per-hunk stage / reset / preview / select
- Blame: cursor-line popup, inline annotation, full-file gutter
- Commit proxy (compose in a Neovim buffer)
@@ -36,7 +36,7 @@ vim.pack.add({ "https://git.owall.se/oscar/git.nvim" })
| `:Gdiffsplit [vertical\|horizontal] [<rev>]` | Open a diff split (default vertical, vs index) |
| `:Gedit <rev>[:path]` | Open an object as a buffer (`git://` URI) |
| `:Gstatus [sidebar\|split\|current]` | Open the status view (default `split`) |
| `:GitDiffOverlay` | Toggle the in-buffer diff overlay |
| `:GitHunkOverlay` | Toggle the in-buffer hunk overlay |
## Mappings
@@ -55,7 +55,7 @@ vim.pack.add({ "https://git.owall.se/oscar/git.nvim" })
| `<Plug>(git-hunk-select)` | Visually select the hunk under cursor |
| `<Plug>(git-hunk-stage-toggle)` | Stage / unstage hunk or visual hunks |
| `<Plug>(git-hunk-reset)` | Reset hunk |
| `<Plug>(git-hunk-overlay-toggle)` | Toggle the in-buffer diff overlay |
| `<Plug>(git-hunk-overlay)` | Toggle the in-buffer hunk overlay |
| `<Plug>(git-hunk-next)` | Jump to next hunk |
| `<Plug>(git-hunk-prev)` | Jump to previous hunk |