aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,