diff.nvim
Flexible diffing for Neovim: one :Diff command compares arbitrary sources — buffers, files, git revisions, URLs, whole directories — against each other and delivers the result however you like: split, inline, prompt, file, clipboard, or a one-line stat summary.
- status
- beta — Beta stage — active development. This repository is past its first shape and in active use, but the surface is not frozen: breaking changes are still possible. Pin a commit or tag if you depend on it.
- category
- Debug & inspect
- neovim
- 0.9+
- repo
- github.com/WKDSteve/diff.nvim
- commits
- 180
- help
- :help diff
demo
demos/diff.tape in a clean Neovim — re-recorded weekly
what is shown when
- :Diff target=file - this buffer against a file
- ]c and [c - jump between hunks
install
{
"WKDSteve/diff.nvim",
opts = {},
} docs/
- BINDINGS.md
- CONTRIBUTING.md
- FEATURES.md
- README.md
- WORKFLOW.md
- api.md
- architecture.md
- around-it.md
- commands.md
- configuration.md
- installation.md
- quickstart.md
- testing.md
- three-way-diff.md
- url-sources.md
git log
- fix api: a path with a dollar sign is taken as it is in the table form of run()
- fix tree: two folders from a tab with only the tree open in a tab of their own
- fix tree: the editor's file is recognised through another spelling of its path
- feat tree: "Compare" as an action on nodes of a tree view
- feat api: run() takes its arguments as a table, so a path with a blank can be given
- docs readme: connections to the other repos of the workshop, as a picture and a list
- docs readme: the icon of the plugin on top, the files in assets/icons/diff-nvim
- ci regenerate the workflow, the ci-verified lookup fails closed (pipefail)
- test sheets: a missing ui.nvim is a reported n/a of the sheets that need it
- test TESTS/minimal_init.lua from the current template (SHEETS_ONLY is part of it)
- chore ci: regenerate the workflow (luacheck as a checked release binary, testing.nvim d9d2d35)
- test sheets: the feature catalog, and the sheets name their feature