practicalli/neovim

git: use neogit tab workflow

Open

#53 geöffnet am 1. Sept. 2024

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (1 zugewiesene Person)HTML (6 Forks)auto 404
good first issue

Repository-Metriken

Stars
 (29 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

Practicalli recommends using Neogit as the Neovim git client, especially when used to Magit style git client.

SPC g s keybinding is already taken by AstroNvim (to stage the current hunk). Rather than rebind this key mapping, the AstroNvim SPC g n t key mapping is used to launch Neogit in its own tab.

g t can be used to switch from Neogit to the code of a project, rather than using q to close Neogit each time. This means that the longer SPC g n t key sequence is only used once per session.

C-r to refresh the Neogit status buffer if changes made are not showing (not always refreshed when switching back an fourth between neogit status buffer and project files buffer).

SPC g s to stage hunks in the project file buffer or SPC g S to stage all changes in the buffer.

AstroNvim comes with SPC g g key maping to launch lazygit (and external app run within a popup) which is convenient if you know how to use it.

UPDATE: Neogit can no be shown in a floating window, SPC g n f

Existing content

Contributor Guide