stevearc / dressing.nvim

Neovim plugin to improve the default vim.ui interfaces
MIT License
1.82k stars 32 forks source link

fix: plugin keymaps delayed #120

Closed chrisgrieser closed 11 months ago

chrisgrieser commented 12 months ago

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 commented 11 months ago

LGTM! Can you fix the styling?

chrisgrieser commented 11 months ago

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

fixed

stevearc commented 11 months ago

Thanks for the PR!