practicalli/neovim

git: use neogit tab workflow

Open

#53 aberto em 1 de set. de 2024

Ver no GitHub
 (0 comments) (0 reactions) (1 assignee)HTML (6 forks)auto 404
good first issue

Métricas do repositório

Stars
 (29 stars)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

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

Guia do colaborador