Skip to content

Commit

Permalink
fix: dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
willruggiano committed Jul 29, 2023
1 parent 2a806b6 commit 109ccfe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugins/bombadil.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ return function()
vim.opt.background = (function()
local t = os.date "*t"
-- Use light theme between 8am and 8pm, light theme otherwise
return t.hour < 8 or t.hour > 20 and "dark" or "light"
if t.hour < 8 or t.hour > 20 then
return "dark"
else
return "light"
end
end)()
vim.cmd.colorscheme "flavours"
end

0 comments on commit 109ccfe

Please sign in to comment.