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

Seperate/disable timer for registers function #144

Closed
JSchrtke opened this issue Jul 28, 2021 · 2 comments · Fixed by #383
Closed

Seperate/disable timer for registers function #144

JSchrtke opened this issue Jul 28, 2021 · 2 comments · Fixed by #383

Comments

@JSchrtke
Copy link

I have my timeoutlen set to one second so I don't get the which-key popup for keymaps I can remember and execute quickly, but that also affects the registers function of the plugin.

It would be nice to have a different timer, or the option to disable it entirely for only the registers function that appears on " or <C-r> so that they show up quicker/immediately

@folke folke closed this as completed in 653ce71 Aug 5, 2021
@folke
Copy link
Owner

folke commented Aug 5, 2021

I just pushed a fix for this. Thank you for reporting!

@JSchrtke
Copy link
Author

JSchrtke commented Aug 5, 2021

Straight back from holidays and fixing nvim plugins it seems :P

Works fine for the " trigger in normal mode, that now shows up immediately. It does not however work for the <c-r> trigger in insert, that still is affected by the timeoutlen.

Weird little bit of behavior that makes it work:

  • Go into insert mode
  • Press <c-r>
  • Immediately press escape
  • Press <c-r>. Now the registers plugin shows up immediately.

Minimal config I used to repro this:

call plug#begin('~/.vim/plugged')
Plug 'folke/which-key.nvim'
call plug#end()

lua << EOF
require("which-key").setup{}
EOF

set timeoutlen=1000

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 a pull request may close this issue.

2 participants