:GitJump [diff [args]|merge|grep [args]| ws]
This plugin calls the git-jump contrib script from within an existing neovim client. Quickfix item filepathes are amended to be relative to the current working directory, rather than the git top-level directory.
Git version 2.40.0 or later, to ensure that git jump supports the --stdout arg.
Contrib scripts are not packaged with every git distribution. If you have a version of git that does not include it, you will need to install it manually.
You can check if your git installation includes the git-jump contrib script by finding your git installation directory:
ls ${brew --prefix git}/share/git-core/contrib
ls /usr/share/git/contrib
ls /usr/local/bin/git/contrib
ls /usr/bin/git/contribIf not present, you can manually download the git-jump script from the git repository.
curl https://raw.githubusercontent.com/git/git/refs/heads/master/contrib/git-jump/git-jump > /usr/local/bin/git-jumpThe contrib script must then be aliased to git jump in your global git configuration:
[alias]
jump = "!$(brew --prefix git)/share/git-core/contrib/git-jump/git-jump"Using lazy.nvim
{
"ohainle/gitjump.nvim",
dependencies = { "nvim-lua/plenary.nvim" },
}Important
nvim-lua/plenary.nvim is a required dependency.
:GitJump [diff [args]|merge|grep [args]| ws]
Please report bugs to https://github.com/ohainle/gitjump.nvim/issues.