mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-03 17:45:52 +02:00
[WHICH-KEY] Use wk.register() to handle the overrides. (#915)
This commit is contained in:
parent
08d930a6bb
commit
6bbc082f57
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue