NeogitOrg / NeogitOrg/neogit

Possibility to use git difftool

Open
#1,877 2 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
5.6k
Forks
357
Avg merge
15h 47m
Merged PRs (30d)
2

Description

Is your feature request related to a problem? Please describe.
I want to use my configured git difftool (nvimdiff).

Describe the solution you'd like
I would love the possibility to invoke git difftool (or nvimdiff, even vimdiff for that matter) directly from the Neogit.

Describe alternatives you've considered
Using diffview.nvim, but it feels like "overkill" for me, also one more plugin...

Manually running commands...

Native Vim diffs: like :vert diffsplit manually, but this doesn't automatically grab the correct HEAD/Index versions like difftool does...

Additional context
Neogit has a great staging view. I want to use my own diff tool. No extra plugins/dependencies needed.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with Neogit's staging view and existing Git command entry points, then investigate how a configured git difftool could be invoked for the HEAD and index versions. Done should mean that Neogit can launch the user's configured difftool without requiring an additional plugin or dependency.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, lua, neovim
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.