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

nowait in command maps not working #312

Open
qfjp opened this issue Jul 18, 2022 · 2 comments
Open

nowait in command maps not working #312

qfjp opened this issue Jul 18, 2022 · 2 comments

Comments

@qfjp
Copy link

qfjp commented Jul 18, 2022

I'm trying to do the following map:

require('which-key').register(
  {["<C-a>"] = {"<Home>", "Home"}},
  {mode = "c", nowait = true}
)

however it still appears as if the mapping is registered without <nowait>. That is, after typing Ctrla in the command line the cursor does not move until after something additional is typed.

@qfjp
Copy link
Author

qfjp commented Jul 18, 2022

This might be related to issues #285 and #152.

@sdondley
Copy link

sdondley commented Aug 1, 2023

I tried reproducing this but was unable to. Here's my config in lazy.com:

    opts = {
      defaults = {
        ["<C-a>"] = {
          mode = "c",
          "<Home>",
          "Home",
        },
    }

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

No branches or pull requests

2 participants