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

fix(toggle): only execute self:_wk when mapping exists #378

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dpetka2001
Copy link
Contributor

Description

Currently when a user disables a key with vim.keymap.del in his personal configuration, the which-key menu still shows the mapping. This ensures that self:_wk function won't execute if the mapping doesn't exist.

If you're satisfied with this solution, please also remove the comment I included.

Related Issue(s)

No issues, rather a LazyVim discussion

Screenshots

Before
2024-12-23_20-08
After
2024-12-23_20-09

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant