fix(file): emit BufReadPost after async keymap registration#106
fix(file): emit BufReadPost after async keymap registration#106dlyongemallo merged 1 commit intomainfrom
BufReadPost after async keymap registration#106Conversation
There was a problem hiding this comment.
Pull request overview
This PR addresses diff buffer keymaps being registered after initial buffer events, by explicitly re-triggering BufReadPost once diffview has finished attaching buffer-local keymaps (intended to make plugins like which-key.nvim pick them up immediately).
Changes:
- Emit
BufReadPostafterFile:attach_buffer()finishes applying buffer-local keymaps/opts. - Skip the
BufReadPostemission whendiffview_disable_tsis set (large file treesitter optimization).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
d275ebe to
d6165d2
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Fire `BufReadPost` on the buffer after `attach_buffer() registers keymaps so `which-key.nvim` (>=3.5.0) re-scans buffer-local keymaps.
d6165d2 to
91a4357
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Fixes sindrets#564.