practicalli/neovim

git: use neogit tab workflow

Open

#53 创建于 2024年9月1日

在 GitHub 查看
 (0 评论) (0 反应) (1 负责人)HTML (6 fork)auto 404
good first issue

仓库指标

Star
 (29 star)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南