From 6bbc082f5758cdb57ecb25f270e5558ab63d3754 Mon Sep 17 00:00:00 2001 From: James Walmsley Date: Tue, 13 Jul 2021 22:06:19 +0100 Subject: [WHICH-KEY] Use wk.register() to handle the overrides. (#915) --- lua/core/which-key.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lua/core') 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 -- cgit v1.2.3