Skip to content
This repository was archived by the owner on Oct 12, 2025. It is now read-only.

deathbeam/difftool.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️ This repository is archived. The feature has been merged into Neovim.

difftool

DiffTool <left> <right> command for integration with git difftool and git difftool --dir-diff.

Config

{
    method = 'auto', -- diff method to use, 'auto', 'builtin' or 'diffr'
    rename = {
        detect = false, -- whether to detect renames, can be slow on large directories
        similarity = 0.5, -- minimum similarity for rename detection
        chunk_size = 4096, -- maximum chunk size for rename detection
    }
}

There are also vim.g config options:

vim.g.difftool_replace_diff_mode = false -- false by default, if true replaces nvim -d with DiffTool

Usage

Add this to your gitconfig:

[diff]
    tool = nvim_difftool

[difftool "nvim_difftool"]
    cmd = nvim -c \"DiffTool $LOCAL $REMOTE\"

Or if you enabled difftool_replace_diff_mode:

[diff]
    tool = nvimdiff

About

DiffTool command for Neovim, to support git difftool -d

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages