aboutsummaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2021-10-07 23:37:35 +0800
committerjdhao <jdhao@hotmail.com>2021-10-07 23:37:35 +0800
commit96898255a0ffa606ac3e482fbe5edffc93c869fb (patch)
treebdeebfa2cbd8553c2e3c8075d13d20d0aadc643e /lua
parentc0f59bde8d94899e5a826131d4cc946e4a649909 (diff)
add which-key.nvim
Diffstat (limited to 'lua')
-rw-r--r--lua/config/which-key.lua8
-rw-r--r--lua/plugins.lua3
2 files changed, 11 insertions, 0 deletions
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,