Skip to content

Commit fb4e3d0

Browse files
committed
Fix which-key delay settings
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
1 parent de44f49 commit fb4e3d0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

init.lua

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,6 @@ vim.opt.signcolumn = 'yes'
134134
-- Decrease update time
135135
vim.opt.updatetime = 250
136136

137-
-- Decrease mapped sequence wait time
138-
-- Displays which-key popup sooner
139-
vim.opt.timeoutlen = 300
140-
141137
-- Configure how new splits should be opened
142138
vim.opt.splitright = true
143139
vim.opt.splitbelow = true
@@ -274,6 +270,7 @@ require('lazy').setup({
274270
'folke/which-key.nvim',
275271
event = 'VimEnter', -- Sets the loading event to 'VimEnter'
276272
opts = {
273+
delay = 0,
277274
icons = {
278275
-- set icon mappings to true if you have a Nerd Font
279276
mappings = vim.g.have_nerd_font,

0 commit comments

Comments
 (0)