From 4b4034d538f8b7d07ed6b1d6f674d9afda85a56e Mon Sep 17 00:00:00 2001 From: Nikita Bykov Date: Wed, 28 May 2025 01:31:44 +0500 Subject: [PATCH] disable auto which key --- .config/nvim/lua/user/options.lua | 1 + .config/nvim/lua/user/which_key.lua | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.config/nvim/lua/user/options.lua b/.config/nvim/lua/user/options.lua index 49f8e17..1175be0 100644 --- a/.config/nvim/lua/user/options.lua +++ b/.config/nvim/lua/user/options.lua @@ -15,6 +15,7 @@ vim.opt.termguicolors = true vim.opt.tabstop = 2 vim.opt.shiftwidth = 2 vim.opt.updatetime = 300 +vim.opt.timeoutlen = 5000 vim.opt.ttimeoutlen = 5 vim.opt.signcolumn = "yes:2" diff --git a/.config/nvim/lua/user/which_key.lua b/.config/nvim/lua/user/which_key.lua index ed4a41e..9c81964 100644 --- a/.config/nvim/lua/user/which_key.lua +++ b/.config/nvim/lua/user/which_key.lua @@ -46,9 +46,7 @@ which_key.setup({ end, show_help = true, -- show help message on the command line when the popup is visible show_keys = true, -- show the currently pressed key and its label as a message in the command line - triggers = { - { "", mode = "nxso" }, - }, + triggers = { }, -- disable the WhichKey popup for certain buf types and file types. -- Disabled by default for Telescope disable = { @@ -59,6 +57,7 @@ which_key.setup({ which_key.add({ { "", group = "Hotkeys" }, + { "?", ":WhichKey ", desc = "Show keybindings" }, { "o", ":Oil --float ", desc = "Oil nvim toggle" }, { "e", ":Neotree toggle ", desc = "File tree toggle" }, { "F", ":lua vim.lsp.buf.format() ", desc = "Format file" },