Skip to content

Conversation

@niba
Copy link

@niba niba commented Jan 26, 2025

Description

The ⁠which-key menu fails to appear for ⁠localleader mappings in newly created buffers. Currently, the only way to make it work is to trigger the standard ⁠leader menu first, which seems to force a state update.

It appears that ⁠which-key attempts to load buffer mappings before the ⁠localleader mappings are fully registered. Triggering the ⁠leader menu resolves this because it re-reads the mappings, at which point they are available.

This PR defers the reading of the buffer state. This ensures that all mappings are fully established before ⁠which-key attempts to index them, effectively resolving the race condition.

Related Issue(s)

@github-actions
Copy link
Contributor

This PR is stale because it has been open 30 days with no activity.

@github-actions github-actions bot added the stale This issue or PR has been inactive for a while label Feb 27, 2025
@disrupted
Copy link

This PR is stale because it has been open 30 days with no activity.

bad bot

@github-actions github-actions bot removed the stale This issue or PR has been inactive for a while label Feb 28, 2025
@github-actions
Copy link
Contributor

This PR is stale because it has been open 30 days with no activity.

@github-actions github-actions bot added the stale This issue or PR has been inactive for a while label Mar 30, 2025
@RayJameson
Copy link

bump

@github-actions github-actions bot removed the stale This issue or PR has been inactive for a while label Mar 31, 2025
@github-actions
Copy link
Contributor

github-actions bot commented May 1, 2025

This PR is stale because it has been open 30 days with no activity.

@github-actions github-actions bot added the stale This issue or PR has been inactive for a while label May 1, 2025
@disrupted
Copy link

This PR is stale because it has been open 30 days with no activity.

bad bot

@github-actions github-actions bot removed the stale This issue or PR has been inactive for a while label May 2, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Jun 1, 2025

This PR is stale because it has been open 30 days with no activity.

@github-actions github-actions bot added the stale This issue or PR has been inactive for a while label Jun 1, 2025
@niba
Copy link
Author

niba commented Jun 1, 2025

ping

@github-actions github-actions bot removed the stale This issue or PR has been inactive for a while label Jun 2, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Jul 3, 2025

This PR is stale because it has been open 30 days with no activity.

@github-actions github-actions bot added the stale This issue or PR has been inactive for a while label Jul 3, 2025
@niba
Copy link
Author

niba commented Jul 3, 2025

bump

@RayJameson
Copy link

@folke I'm sorry for pinging, but do you mind looking at this PR?

@github-actions github-actions bot removed the stale This issue or PR has been inactive for a while label Jul 4, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Aug 3, 2025

This PR is stale because it has been open 30 days with no activity.

@github-actions github-actions bot added the stale This issue or PR has been inactive for a while label Aug 3, 2025
@disrupted
Copy link

this is getting tiring

@github-actions github-actions bot removed the stale This issue or PR has been inactive for a while label Aug 5, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Sep 5, 2025

This PR is stale because it has been open 30 days with no activity.

@github-actions github-actions bot added the stale This issue or PR has been inactive for a while label Sep 5, 2025
@niba
Copy link
Author

niba commented Sep 5, 2025

bump

@niba niba force-pushed the fix/localleader_popup branch from d82109f to 71d43fe Compare December 11, 2025 21:06
@github-actions github-actions bot added the size/s Small PR (<10 lines changed) label Dec 11, 2025
@niba
Copy link
Author

niba commented Dec 11, 2025

If anyone wants to use this version, you can add the following to your config:

 {
    "folke/which-key.nvim",
    url = "https://github.com/niba/which-key.nvim",
    branch = "fix/localleader_popup",
 }

@MamaTierra
Copy link

If anyone wants to use this version, you can add the following to your config:

 {
    "folke/which-key.nvim",
    url = "https://github.com/niba/which-key.nvim",
    branch = "fix/localleader_popup",
 }

Works for me. Waiting for the merge 👀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/s Small PR (<10 lines changed)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: which-key menu not showing up for <localleader> mappings

4 participants