diff options
| author | James Walmsley <[email protected]> | 2021-07-13 22:06:19 +0100 | 
|---|---|---|
| committer | GitHub <[email protected]> | 2021-07-14 01:36:19 +0430 | 
| commit | 6bbc082f5758cdb57ecb25f270e5558ab63d3754 (patch) | |
| tree | d51e85c4f15e726621241c0c2097fffb743d9fc1 | |
| parent | 08d930a6bbf776f8d167f47d1c5f9b60ced97ef8 (diff) | |
[WHICH-KEY] Use wk.register() to handle the overrides. (#915)
| -rw-r--r-- | lua/core/which-key.lua | 6 | 
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 | 
