fix(config): return defaults when setup was not run yet. Fixes #126
This commit is contained in:
@ -155,7 +155,7 @@ end
|
|||||||
setmetatable(M, {
|
setmetatable(M, {
|
||||||
__index = function(_, key)
|
__index = function(_, key)
|
||||||
if options == nil then
|
if options == nil then
|
||||||
M.setup()
|
return vim.deepcopy(defaults)[key]
|
||||||
end
|
end
|
||||||
---@cast options LazyVimConfig
|
---@cast options LazyVimConfig
|
||||||
return options[key]
|
return options[key]
|
||||||
|
Reference in New Issue
Block a user