Skip to content

Compare HEAD with any branch. Easily find changed files and do git diff.

License

Notifications You must be signed in to change notification settings

GoMarine/gitdiff.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

eb66c07 · Aug 12, 2022

History

8 Commits
Aug 9, 2022
Aug 9, 2022
Aug 9, 2022
Aug 12, 2022

Repository files navigation

gitdiff.nvim

Stars Issues Repo Size License

Compare HEAD with any branch. Easily find changed files and do git diff.

Requirements

Installation

use { "milennik/gitdiff.nvim" }

Configuration

Usage

  • Pass the reference branch name as parameter to compare HEAD with it. This key map can be used to compare HEAD with a default reference branch:

    map('n', '<C-y>', ":lua require('gitdiff').diff('master')<cr>")

  • If we don't pass any parameter, the promt will be shown, and we can enter any branch to compare to:

    map('n', '<C-[>', ":lua require('gitdiff').diff()<cr>")

  • git diff vertical split:

    map('n', '<C-p>', ":Gvdiffsplit master<cr>")

  • Swap windows: C+w, x

FAQ

License

GPL-3.0

About

Compare HEAD with any branch. Easily find changed files and do git diff.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages