neovim
neovim copied to clipboard
git: use neogit tab workflow
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
- https://practical.li/neovim/source-control/neogit/