8000 GitHub - jake-stewart/diff.nvim: diff regions/registers/files in nvim · GitHub
[go: up one dir, main page]

Skip to content
jake-stewartPublic

About

diff regions/registers/files in nvim

Resources

Stars

20 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

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

Stars

20 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0