From 00550d0e165b43cfdcc1f6d73264e30f1879d750 Mon Sep 17 00:00:00 2001 From: Patrick Auernig Date: Sun, 3 Mar 2024 02:28:53 +0100 Subject: [PATCH] Add which-key plugin --- lazy-lock.json | 3 ++- lua/valeth/plugins/whichkey.lua | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 lua/valeth/plugins/whichkey.lua diff --git a/lazy-lock.json b/lazy-lock.json index d204310..f821dfa 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -41,5 +41,6 @@ "statuscol.nvim": { "branch": "main", "commit": "d954893262a57a92e46edd87de67e2b3fe72305e" }, "telescope.nvim": { "branch": "0.1.x", "commit": "d90956833d7c27e73c621a61f20b29fdb7122709" }, "trouble.nvim": { "branch": "main", "commit": "f1168feada93c0154ede4d1fe9183bf69bac54ea" }, - "vim-wakatime": { "branch": "master", "commit": "285c2e4e48fb0c63ced233c00fb10a2edb3b6c94" } + "vim-wakatime": { "branch": "master", "commit": "285c2e4e48fb0c63ced233c00fb10a2edb3b6c94" }, + "which-key.nvim": { "branch": "main", "commit": "4433e5ec9a507e5097571ed55c02ea9658fb268a" } } \ No newline at end of file diff --git a/lua/valeth/plugins/whichkey.lua b/lua/valeth/plugins/whichkey.lua new file mode 100644 index 0000000..19966ff --- /dev/null +++ b/lua/valeth/plugins/whichkey.lua @@ -0,0 +1,15 @@ +local spec = { + "folke/which-key.nvim" +} + +spec.init = function() + vim.opt.timeout = true + -- the keybinds help is shown after this timeout + vim.opt.timeoutlen = 500 +end + +spec.opts = { + show_help = false +} + +return spec