Skip to content

Commit 1c91498

Browse files
committed
git gutter
1 parent 53e817f commit 1c91498

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

content/en/usage/usage.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,25 @@ and basic support for Mercurial and Fossil.
539539

540540
![](https://raw.githubusercontent.com/lem-project/lem/main/extensions/legit/lem-status.png)
541541

542+
## Git-gutter
543+
544+
`git-gutter-mode` is a global minor mode that displays `git diff` status in the editor gutter:
545+
546+
- Show markers for added (`+`), modified (`~`), and deleted (`_`) lines with color coding (green/yellow/red)
547+
- Support configurable comparison reference (default: HEAD) via `git-gutter-set-ref` command
548+
- Add optional line background highlighting via `*git-gutter-highlight-line*` variable
549+
- **Real-time updates**: Gutter markers update automatically as you edit (debounced).
550+
- Non-git files: silently ignored
551+
552+
The available commands are:
553+
554+
- `git-gutter-mode` - Toggle the mode globally
555+
- `git-gutter-set-ref` - Change the comparison reference
556+
- `git-gutter-refresh` - Manually refresh current buffer
557+
- `git-gutter-toggle-line-highlight` - Toggle line background highlighting
558+
559+
Tooling Used: Claude Code (Claude Opus 4.5) for this feature.
560+
542561

543562
## Misc
544563

0 commit comments

Comments
 (0)