mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-28 11:40:13 +02:00
fix(config): return defaults when setup was not run yet. Fixes #126
This commit is contained in:
parent
12771e9987
commit
bd4f350503
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue