Skip to content

Commit

Permalink
fix(config): return defaults when setup was not run yet. Fixes #126
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jan 25, 2023
1 parent 12771e9 commit bd4f350
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lazyvim/config/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ end
setmetatable(M, {
__index = function(_, key)
if options == nil then
M.setup()
return vim.deepcopy(defaults)[key]
end
---@cast options LazyVimConfig
return options[key]
Expand Down

0 comments on commit bd4f350

Please sign in to comment.