NORMAL ~/wkd/p/diff :set skin=modern utf-8

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

recorded with VHS from demos/diff.tape in a clean Neovim — re-recorded weekly
what is shown when
  1. :Diff target=file - this buffer against a file
  2. ]c and [c - jump between hunks

install

{
  "WKDSteve/diff.nvim",
  opts = {},
}

docs/

git log

  1. fix api: a path with a dollar sign is taken as it is in the table form of run()
  2. fix tree: two folders from a tab with only the tree open in a tab of their own
  3. fix tree: the editor's file is recognised through another spelling of its path
  4. feat tree: "Compare" as an action on nodes of a tree view
  5. feat api: run() takes its arguments as a table, so a path with a blank can be given
  6. docs readme: connections to the other repos of the workshop, as a picture and a list
  7. docs readme: the icon of the plugin on top, the files in assets/icons/diff-nvim
  8. ci regenerate the workflow, the ci-verified lookup fails closed (pipefail)
  9. test sheets: a missing ui.nvim is a reported n/a of the sheets that need it
  10. test TESTS/minimal_init.lua from the current template (SHEETS_ONLY is part of it)
  11. chore ci: regenerate the workflow (luacheck as a checked release binary, testing.nvim d9d2d35)
  12. test sheets: the feature catalog, and the sheets name their feature

keys

j / k
next / previous line
gg / G
first / last line
⏎
open the line under the cursor
/
search plugins and apps (app: x or plugin: x narrows)
:
command line — Tab completes
:help x
vimdoc of a plugin (:e x = plugin page)
:ls · :apps · :play · :log · :stack
plugin list · app list · play area · activity stream · dependency graph
:log apps
the stream of one area (plugins or apps)
:colo x
colorscheme
:set skin=
modern | tui
?
this help
esc
close