migrate config form function to global variable

This commit is contained in:
asep komarudin 2023-03-05 17:34:12 +07:00
parent b6f0601d3d
commit 38d2c29a95
24 changed files with 248 additions and 245 deletions

View file

@ -395,11 +395,9 @@ local mappings = {
}
local wkey = {}
local data_exists, key = pcall(require, "custom.whichkey")
local data_exists, key = pcall(require, "core.config")
if data_exists then
if type(key) == "table" then
wkey = key
end
wkey = key.whichkey
end
which_key.setup(setup)