sindrets / diffview.nvim

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

Custom diff map not honored #460

Closed brucejxz closed 4 months ago

brucejxz commented 8 months ago

Hey. So I have a the following mappings set up to centralise the diff hunk after jumping to it:

vim.keymap.set('n', '[c', '[czz', { desc = 'Jump to previous hunk' })
vim.keymap.set('n', ']c', ']czz', { desc = 'Jump to next hunk' })

These work when I run:

nvim -d file_1 file_2

But they don't work in a :DiffviewOpen view. Any idea why not?

sindrets commented 4 months ago

No, I don't know. And I won't try to guess why you're having this problem either, because you didn't fill out the bug template. But we don't currently change that mapping by default.