Skip to content

Commit

Permalink
basics: navigate git hunks with gitsigns key mappings
Browse files Browse the repository at this point in the history
Resolve: #57
  • Loading branch information
practicalli-johnny committed Jan 23, 2025
1 parent 8badec8 commit 52a5dcb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
- source-control: new magit screenshots & gitlinker plugin use
- reference: started folding page
- clojure: refactor namespace with Clojure LSp via command line
- basics: navigate git hunks with gitsigns key mappings

### Changed
- ci: spell lychee & repository trufflehog linters warn only (false positives)
Expand Down
14 changes: 14 additions & 0 deletions docs/neovim-basics/navigation.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,20 @@ Navigate within the current file or globally using file marks.
> AstroNvim user config enables `incsearch` incremental search and `hlsearch` to highlight every search match

## Git

AstroNvim includes [Gitsigns](https://github.com/lewis6991/gitsigns.nvim) which highlights changes to the working directory in the buffer margin.

Git hunks can be navigated

- ++bracket-left++ ++"g"++ jumps to previous hunk
- ++bracket-right++ ++"g"++ jumps to next hunk
- ++bracket-left++ ++"G"++ jumps to first hunk
- ++bracket-right++ ++"G"++ jumps to last hunk

> [Source Control](/neovim/source-control/index.md) section describes additional features of Gitsigns and other Git tools.

## Projects

++colon++ ++"c"++ ++"d"++ followed by a path changes the root directory for Neovim.
Expand Down

0 comments on commit 52a5dcb

Please sign in to comment.