fix(config): return defaults when setup was not run yet. Fixes #126

This commit is contained in:
Folke Lemaitre
2023-01-25 08:56:48 +01:00
parent 12771e9987
commit bd4f350503

View File

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