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:
parent
bbb0cb9c5b
commit
9b2268d4f8
@ -97,10 +97,6 @@ vim.opt.signcolumn = 'yes'
|
|||||||
-- Decrease update time
|
-- Decrease update time
|
||||||
vim.opt.updatetime = 250
|
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
|
-- Configure how new splits should be opened
|
||||||
vim.opt.splitright = true
|
vim.opt.splitright = true
|
||||||
vim.opt.splitbelow = true
|
vim.opt.splitbelow = true
|
||||||
@ -237,6 +233,8 @@ require('lazy').setup({
|
|||||||
event = 'VimEnter', -- Sets the loading event to 'VimEnter'
|
event = 'VimEnter', -- Sets the loading event to 'VimEnter'
|
||||||
opts = {
|
opts = {
|
||||||
icons = {
|
icons = {
|
||||||
|
delay = 50,
|
||||||
|
|
||||||
-- set icon mappings to true if you have a Nerd Font
|
-- set icon mappings to true if you have a Nerd Font
|
||||||
mappings = vim.g.have_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
|
-- If you are using a Nerd Font: set icons.keys to an empty table which will use the
|
||||||
|
Loading…
Reference in New Issue
Block a user