A Neovim plugin for managing Git from the editor. Shows an interactive status window with support for staging, unstaging, and committing files.
vim.pack.add({
'https://codeberg.org/mauritz/gitstatus.nvim',
-- optional dependencies
'https://github.com/nvim-tree/nvim-web-devicons', -- display filetype icons
-- 'https://github.com/nvim-mini/mini.icons' -- use mini.icons instead if you prefer
-- 'https://github.com/rcarriga/nvim-notify', -- show fancy notifications
})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
