From 9b2268d4f8035bb37171bc9eb6a829e30d9c7446 Mon Sep 17 00:00:00 2001 From: Tony Grosinger Date: Fri, 4 Oct 2024 13:11:31 -0700 Subject: [PATCH] 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. --- nvim/init.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/nvim/init.lua b/nvim/init.lua index ec7ca68..a33884f 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -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