diff options
| author | Ryan Jensen <jensenr30@gmail.com> | 2024-12-29 11:04:10 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-29 12:04:10 -0500 |
| commit | 07daf521f90397560fa587a0fd6b77dce207b2b7 (patch) | |
| tree | b3a98972ba2d3bf5928223144973d865d557dd3e | |
| parent | 7fc11051a84757285cd23faa8d2bda9418c47f2c (diff) | |
| download | dots-07daf521f90397560fa587a0fd6b77dce207b2b7.tar.gz | |
Fix which-key delay settings (#1276)
The which-key plugin used to rely on vim.opt.timeoutlen, but it was
updated a few months ago to use its own opt.delay instead.
https://github.com/folke/which-key.nvim/blob/8ab96b38a2530eacba5be717f52e04601eb59326/NEWS.md?plain=1#L10
I set which-key's delay to 0 ms because it makes it feel snappy and
responsive! That way, we give new users a good first impression.
| -rw-r--r-- | nvim/init.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nvim/init.lua b/nvim/init.lua index ee8fbc9..7758df9 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -135,7 +135,6 @@ vim.opt.signcolumn = 'yes' vim.opt.updatetime = 250 -- Decrease mapped sequence wait time --- Displays which-key popup sooner vim.opt.timeoutlen = 300 -- Configure how new splits should be opened @@ -274,6 +273,9 @@ require('lazy').setup({ 'folke/which-key.nvim', event = 'VimEnter', -- Sets the loading event to 'VimEnter' opts = { + -- delay between pressing a key and opening which-key (milliseconds) + -- this setting is independent of vim.opt.timeoutlen + delay = 0, icons = { -- set icon mappings to true if you have a Nerd Font mappings = vim.g.have_nerd_font, |