mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 18:58:12 +00:00
fix(config): fix reading config during setup. Fixes #2
This commit is contained in:
parent
6ff28b3a37
commit
0d91a4e364
1 changed files with 5 additions and 1 deletions
|
@ -49,7 +49,11 @@ local config = {
|
|||
}
|
||||
|
||||
---@class snacks.config: snacks.Config
|
||||
M.config = setmetatable({}, { __index = config })
|
||||
M.config = setmetatable({}, {
|
||||
__index = function(_, k)
|
||||
return config[k]
|
||||
end,
|
||||
})
|
||||
|
||||
---@generic T: table
|
||||
---@param snack string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue