From 96898255a0ffa606ac3e482fbe5edffc93c869fb Mon Sep 17 00:00:00 2001 From: jdhao Date: Thu, 7 Oct 2021 23:37:35 +0800 Subject: [PATCH] add which-key.nvim --- lua/config/which-key.lua | 8 ++++++++ lua/plugins.lua | 3 +++ 2 files changed, 11 insertions(+) create mode 100644 lua/config/which-key.lua diff --git a/lua/config/which-key.lua b/lua/config/which-key.lua new file mode 100644 index 0000000..ffb813a --- /dev/null +++ b/lua/config/which-key.lua @@ -0,0 +1,8 @@ +require("which-key").setup{ + triggers_blacklist = { + -- list of mode / prefixes that should never be hooked by WhichKey + -- this is mostly relevant for key maps that start with a native binding + -- most people should not need to change this + n = { "o", }, + }, +} diff --git a/lua/plugins.lua b/lua/plugins.lua index 97d9e71..5dd4ef3 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -298,6 +298,9 @@ require("packer").startup({ -- The missing auto-completion for cmdline! use("gelguy/wilder.nvim") + + -- showing keybindings + use {"folke/which-key.nvim", config = [[require('config.which-key')]]} end, config = { max_jobs = 16,