Hunks with gitsigns

Hunks with gitsigns

Open any file in a git repository and the sign column comes alive: green bars for added lines, blue-ish for changes, red markers for deletions — updating live as you type.

KeysAction
]h / [hjump to the next / previous hunk
<leader>hppreview the hunk in a float (old vs new)
<leader>hsstage the hunk under the cursor
<leader>hrreset (discard) the hunk

The preview float is the daily hero: cursor on a change, <leader>hp, and the old line sits above the new one — no git diff, no context switch. The float closes as soon as the cursor moves.

Hunk-level staging (<leader>hs) is the underrated one: build a clean commit from a messy working tree by staging exactly the changes that belong together, one hunk at a time, without ever writing git add -p.