Skip to content

00mjk/igit.nvim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Igit

Neovim

CI Status

Dependency

  1. plenary.nvim
  2. libp.nvim

Installation


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,
})

Usage

: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

Page Mappings

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.

Customization

See igit-customization.

Highlights:

  • Default command name IGit is customizable.
  • Pages open command is customizable.
  • Mappings handlers takes lua functions.

Screen Shot

branch log status

About

Git intergration for neovim.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 92.2%
  • Vim Script 7.5%
  • Makefile 0.3%