Neovim: Set whichkey delay

Having a short timeoutlen was annoying with things like mini.surround
where I sometimes think about which key needs to be pressed next.
Instead, use the default timeoutlen, but shorten the amount of time
until which-key opens.
This commit is contained in:
Tony Grosinger 2024-10-04 13:11:31 -07:00
parent bbb0cb9c5b
commit 9b2268d4f8

View File

@ -97,10 +97,6 @@ vim.opt.signcolumn = 'yes'
-- Decrease update time
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
vim.opt.splitright = true
vim.opt.splitbelow = true
@ -237,6 +233,8 @@ require('lazy').setup({
event = 'VimEnter', -- Sets the loading event to 'VimEnter'
opts = {
icons = {
delay = 50,
-- set icon mappings to true if you have a Nerd Font
mappings = vim.g.have_nerd_font,
-- If you are using a Nerd Font: set icons.keys to an empty table which will use the