Closed brucejxz closed 4 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?
:DiffviewOpen
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.
Hey. So I have a the following mappings set up to centralise the diff hunk after jumping to it:
These work when I run:
But they don't work in a
:DiffviewOpen
view. Any idea why not?