Skip to content

jake-stewart/diff.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

diff.nvim

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

usage

  • :Diff to diff against default register (respects 'clipboard').
  • :Diff @r to diff against register r.
  • :Diff file to diff against file file.

setup (lazy.nvim)

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
    }
}

About

diff regions/registers/files in nvim

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages