mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-22 08:53:31 +02:00
migrate config form function to global variable
This commit is contained in:
parent
b6f0601d3d
commit
38d2c29a95
24 changed files with 248 additions and 245 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue