diff options
| author | Tomas Slusny <slusnucky@gmail.com> | 2025-10-12 04:24:39 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-11 19:24:39 -0700 |
| commit | fec02ae8e411658a5f97291ac9d7cf7426f1fcbf (patch) | |
| tree | 987c721f3824e94d6e0fec88391ef89ce57ceef3 /runtime/lua/vim/_system.lua | |
| parent | bc2fe135d11865b8ac33214e351312f5f454c4e8 (diff) | |
feat(plugins): nvim.difftool can compare directories #35448
Problem:
Built-in diff mode (nvim -d) does not support directory diffing
as required by git difftool -d. This makes it difficult to compare
entire directories, detect renames, and navigate changes efficiently.
Solution:
Add a DiffTool plugin and command that enables side-by-side diffing of
files and directories in Neovim. The plugin supports rename detection,
highlights changes in the quickfix list, and provides a user command for
easy invocation. This allows proper integration with git difftool -d for
directory comparison.
Example git config:
```ini
[diff]
tool = nvim_difftool
[difftool "nvim_difftool"]
cmd = nvim -c "packadd nvim.difftool" -c "DiffTool $LOCAL $REMOTE"
```
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Co-authored-by: Phạm Bình An <111893501+brianhuster@users.noreply.github.com>
Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
Diffstat (limited to 'runtime/lua/vim/_system.lua')
0 files changed, 0 insertions, 0 deletions
