Skip to content

Latest commit

 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

difft.nvim

asciicast

Features

  • Sync cursor with difftastic to track diffs for what you’re looking at

  • ]c and [c in a difftastic output jumps between hunks

  • gitgutter and fugitive integration

Usage

:Difft runs the difft command with the path args provided, -current is used to determine which side to sync your buffer with.

With no path args, :Difft diffs the current buffer against the same base used by vim-gitgutter.

With no path args from one of two :diffthis windows, :Difft diffs left as old and right as new.

:diffthis
:wincmd w
:diffthis
:Difft
:e /tmp/latest.lua
:Difft -current new /tmp/oldest.lua /tmp/latest.lua
:e /tmp/oldest.lua
:Difft -current old /tmp/oldest.lua /tmp/latest.lua
:let g:gitgutter_diff_base='HEAD^^'
:Difft

You may enable :diffthis on buffers to view a traditional diff alongside it, too.

About

Work with difftastic more easily from Neovim

Resources

Stars

9 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages