differ.nvim

Local diffs, history, staging, PR review and conflicts in one Neovim UI

Image 1 of 2: Stacked diff of a Lua file with partially staged hunks and a file panel of staged and unstaged changes

A Neovim plugin that shows local diffs against any revspec, single-file history, hunk staging, merge conflicts and GitHub pull-request review through one renderer, in a stacked dual-rail view of interleaved old and new lines or side by side. PR review runs in a Go sidecar that talks to gh.

Trade-offs

  • One renderer for every mode, so staging a hunk and replying to a review comment behave like the same tool, instead of combining a diff viewer with a separate PR plugin.
  • The GitHub side runs in a separate Go process, so opening a PR or posting a review never blocks the editor on the API, and results are cached between calls. It needs Go and make to build.
  • A stacked dual-rail layout by default: one scroll surface with old and new lines interleaved per hunk, with side by side a toggle away.

Q&A2

Go and make to build the sidecar, and an authenticated gh. Local diffs need only Neovim 0.12 and git, and :checkhealth differ reports what is missing.

Reviews

Loading reviews

    More in Neovim

    See all 5 →
    • org.nvimEmacs Org mode reimplemented for Neovim in pure Lua
    • godotdev.nvimNeovim as an external editor for Godot 4: LSP, DAP, docs and scene trees
    • sqmeow.nvimDatabase client inside Neovim for SQL, NoSQL and analytical stores
    • ZonvieNative Neovim GUI built with Zig for macOS and Windows
    • camouflage.nvimMasks secrets in config files in Neovim while screen sharing

    More in Git

    See all 20 →
    • agentdiffLine-level record of which AI coding agent wrote which code, kept in git
    • PrefabLensSemantic diffs and merges for Unity YAML assets, in GitHub, the Editor and a CLI
    • CodraSelf-hosted AI code review for GitHub pull requests
    • gitpaneMulti-repo Git dashboard for the terminal and the VS Code Explorer
    • SachoOpinionated changelog manager for release notes written by people
    • gwm-cliGit worktree manager with a TUI and setup already done

    More in Code review

    See all 8 →
    • gripA git hook that quizzes developers on their own diff
    • tfplan2mdTerraform plans as readable Markdown for pull requests
    • reslopReview AI-generated code and prepare a repair plan
    • OmniDiffContent-aware diffing for code, images, fonts and PDFs
    • FossierSpam prevention for open source pull requests
    • RepolaneFocused desktop workspace for GitHub work