Skip to content

Commit

Permalink
fix: fixed opts.window.backdrop. Fixes #115, Closes #119
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jul 6, 2024
1 parent cf3025d commit 6b4acad
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions lua/zen-mode/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ local defaults = {
}

---@type ZenOptions
M.options = {}
M.options = nil

function M.colors(options)
options = options or M.options
Expand Down Expand Up @@ -94,6 +94,11 @@ function M.setup(options)
end
end

M.setup()

return M
return setmetatable(M, {
__index = function(_, k)
if k == "options" then
M.setup()
end
return rawget(M, k)
end,
})

0 comments on commit 6b4acad

Please sign in to comment.