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: plugin keymaps delayed #120

Merged
merged 2 commits into from
Oct 10, 2023
Merged

fix: plugin keymaps delayed #120

merged 2 commits into from
Oct 10, 2023

Conversation

chrisgrieser
Copy link
Contributor

@chrisgrieser chrisgrieser commented Oct 9, 2023

Remove delay when using a plugin keymap.

Context

What is the problem you are trying to solve?
When you have a keymap like qq, and then also set q as a keymap to close Dressing, the result is a minor delay due to nvim waiting to see whether you are going for q or qq.

Description

Describe how the changes add the functionality or fix the issue under "Context"
They add nowait = true, which has the purpose of removing the delay in such cases.

Test Plan

list the steps you took to test this functionality. Steps should be
reproducible by others.

Use a keymap for qq and set

mappings = { n = { ["q"] = "Close" } },

@stevearc
Copy link
Owner

LGTM! Can you fix the styling?

@chrisgrieser
Copy link
Contributor Author

ah yes, only changed via web interface, not considering that stylua now demands changes 🙈

fixed

@stevearc
Copy link
Owner

Thanks for the PR!

@stevearc stevearc merged commit 70fcf2a into stevearc:master Oct 10, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants