fix(state): defer buffer mappings loading to fix localleader menu
Description
The which-key menu doesn't appear for localleader in new buffers. Triggering which-key for leader resolves the issue for localleader.
I assume which-key loads buffer mappings before localleader mappings are set. Then, triggering a which-key leader menu updates the state and loads mappings again, but this time all mappings exist.
Deferring the reading of the buffer state fixes this bug.
Related Issue(s)
- Fixes #476 (still exists)
This PR is stale because it has been open 30 days with no activity.
This PR is stale because it has been open 30 days with no activity.
bad bot
This PR is stale because it has been open 30 days with no activity.
bump
This PR is stale because it has been open 30 days with no activity.
This PR is stale because it has been open 30 days with no activity.
bad bot
This PR is stale because it has been open 30 days with no activity.
ping
This PR is stale because it has been open 30 days with no activity.
bump
@folke I'm sorry for pinging, but do you mind looking at this PR?
This PR is stale because it has been open 30 days with no activity.
this is getting tiring
This PR is stale because it has been open 30 days with no activity.
bump