sindrets / diffview.nvim

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

[Question] Integrate which-key #435

Closed Huray-hub closed 6 months ago

Huray-hub commented 8 months ago

I want to apply which key configuration on buffer level when entering diff-view and reapplying default ones on exit. How can I do this?

sindrets commented 7 months ago

I don't use whichkey myself. Have you looked at :h diffview-config-hooks? I feel like you can probably get this working with a combination of view_enter, view_leave, and diff_buf_win_enter.