Skip to content

Neogit Extra

git.neogit installs Neogit, a Magit-style interactive Git interface with popups for staging, committing, branching, and rebasing. It pairs with the git.diffview extra and uses the core Snacks picker for menus.

-- ~/.config/blak/lua/blak/user.lua
return {
extras = {
enabled = {
"git.neogit",
},
},
}

Because this extra adds a plugin, run:

:BlakExtras sync
Surface Contribution
Plugin NeogitOrg/neogit
Dependencies plenary.nvim
Treesitter git_config, git_rebase, gitcommit, diff
Snacks picker integration enabled
Keymap <leader>gn opens Neogit

Blak does not change the core gitsigns hunk mappings (<leader>g*) or the git.lazygit float (<leader>gg); Neogit is an additional, complementary Git surface on <leader>gn. When the git.diffview extra is also enabled, Neogit auto-detects it for diffs.

Neogit options pass through the plugin spec; override them in plugins.specs if you need to. For example, to enable the diffview integration explicitly:

return {
extras = { enabled = { "git.neogit", "git.diffview" } },
}
:Neogit

Disable the extra, restart Blak, then run :BlakExtras sync to remove the plugin spec.