[WHICH-KEY] Use wk.register() to handle the overrides. (#915)

This commit is contained in:
James Walmsley 2021-07-13 22:06:19 +01:00 committed by GitHub
parent 08d930a6bb
commit 6bbc082f57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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