summaryrefslogtreecommitdiff
path: root/lua/core/which-key.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/core/which-key.lua')
-rw-r--r--lua/core/which-key.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/lua/core/which-key.lua b/lua/core/which-key.lua
index ef875c30..c3255705 100644
--- a/lua/core/which-key.lua
+++ b/lua/core/which-key.lua
@@ -185,13 +185,11 @@ M.setup = function()
mappings["z"] = "Zen"
end
- for k, v in pairs(O.user_which_key) do
- mappings[k] = v
- end
-
local wk = require "which-key"
+
wk.register(mappings, opts)
wk.register(vmappings, vopts)
+ wk.register(O.user_which_key, opts)
end
return M