sindrets / diffview.nvim

Single tabpage interface for easily cycling through diffs for all modified files for any git rev.
Other
3.74k stars 105 forks source link

How to use DiffView as a difftool #324

Closed NeilGirdhar closed 1 year ago

NeilGirdhar commented 1 year ago

I've read https://github.com/sindrets/diffview.nvim/issues/228 and https://github.com/sindrets/diffview.nvim/issues/226, and I've tried numerous searches. I can't seem to configure git and diffview to produce a directory diff.

I have

[diff]
    tool = nvim
    algorithm = histogram

[difftool "nvim"]
    cmd = nvim -d \"$LOCAL\" \"$REMOTE\" -c \"DiffviewOpen\" 

[difftool]
    prompt = false

but it seems that DiffviewOpen doesn't know what to make of the directories. Is there some way to get the nice diff view with directories?

NeilGirdhar commented 1 year ago

I ended up using https://github.com/will133/vim-dirdiff

If diffview gets this functionality though, it might be an interesting merge.

Edit: I see that's https://github.com/sindrets/diffview.nvim/issues/286