Skip to content

Commit

Permalink
fix(config): return defaults when setup was not run yet. Fixes LazyVi…
Browse files Browse the repository at this point in the history
  • Loading branch information
folke authored and ofrades committed May 30, 2023
1 parent 2f24f8d commit b292375
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 b292375

Please sign in to comment.