Interactive Git status window in Neovim
- Lua 99.7%
- Makefile 0.3%
| .github/workflows | ||
| docs | ||
| lua/gitstatus | ||
| plugin | ||
| test | ||
| .editorconfig | ||
| .gitignore | ||
| .luacov | ||
| .luarc.json | ||
| .stylua.toml | ||
| LICENSE | ||
| Makefile | ||
| README.md | ||
gitstatus.nvim
A Neovim plugin for managing Git from the editor. Shows an interactive status window with support for staging, unstaging, and committing files.
Installation
Install with your favorite plugin manager. For example, using Lazy.nvim:
{
'Mauritz8/gitstatus.nvim',
-- optional dependencies
dependencies = {
'nvim-tree/nvim-web-devicons', -- displays filetype icons
-- 'nvim-mini/mini.icons' -- use mini.icons instead if you prefer
'rcarriga/nvim-notify', -- displays nice notifications
},
}
Or with packer.nvim
use {
'Mauritz8/gitstatus.nvim',
-- optional dependencies
requires = {
'nvim-tree/nvim-web-devicons', -- displays filetype icons
-- 'nvim-mini/mini.icons' -- use mini.icons instead if you prefer
'rcarriga/nvim-notify', -- displays nice notifications
},
}
Usage
Open the Git status window with :Gitstatus. For quick access, set up a mapping:
vim.keymap.set('n', '<leader>s', vim.cmd.Gitstatus)
While inside the Git status window:
s– Stage/unstage the file on the current linea– Stage all changesc– Open commit prompto- Open file on the current lineq– Close window
