diff --git a/plugins/bombadil.lua b/plugins/bombadil.lua index 9c26cdd..a881bf5 100644 --- a/plugins/bombadil.lua +++ b/plugins/bombadil.lua @@ -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