Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom diff map not honored #460

Closed
brucejxz opened this issue Feb 4, 2024 · 1 comment
Closed

Custom diff map not honored #460

brucejxz opened this issue Feb 4, 2024 · 1 comment

Comments

@brucejxz
Copy link

brucejxz commented Feb 4, 2024

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
Copy link
Owner

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.

@sindrets sindrets closed this as not planned Won't fix, can't repro, duplicate, stale May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants