Skip to content
This repository has been archived by the owner on Feb 12, 2025. It is now read-only.

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!

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

Successfully merging this pull request may close these issues.

2 participants