Use you preferred package manager. Below we use packer.nvim as an example.
use {'nvim-lua/plenary.nvim'}
use {'ipod825/libp.nvim'}
use {
"ipod825/igit.nvim",
config = function()
require("igit").setup()
end,
}
or
use({
"ipod825/igit.nvim",
requires = { "nvim-lua/plenary.nvim", "ipod825/libp.nvim" },
config = function()
require("igit").setup()
end,
})
:IGit status " Opens the status page (defaults with -s argument.)
:IGit status --long " Opens customized status page.
:IGit log " Opens the log page (defaults with "--oneline --branches --graph --decorate=short")
:IGit log --pretty="format:%h%x09%an%x09%ad%x09%s" " Opens Customized log page
:IGit branch " Opens the branch page (defaults with -v argument.)
:IGit branch --abrev " Opens customized branch page.
:belowright IGit status " Opens pages with modifier
:IGit push " Execute arbitrary git command
See :help igit-mappings
.
Highlights:
- Interactive staging with vim diff window.
- Rebase chains of commits in branch or log pages.
- Add/Remove/Rename branches in branch pages just like editing files.
See igit-customization
.
Highlights:
- Default command name
IGit
is customizable. - Pages open command is customizable.
- Mappings handlers takes lua functions.