Allows you to diff your visual selection against another file or register. Supports and automatically uses vscode-diff.nvim if it is installed.
demo.mov
:Diffto diff against default register (respects'clipboard').:Diff @rto diff against registerr.:Diff fileto diff against filefile.
return {
"jake-stewart/diff.nvim",
cmd = "Diff",
opts = {
-- show a unified diff (single pane)
unified = false,
-- either "tab", "above", "below", "left", or "right"
position = "below",
-- show the cursorline within the diff windows
cursorline = false
}
}