From 109ccfe362b75ec47ee8686810d93f935acc57d8 Mon Sep 17 00:00:00 2001 From: Will Ruggiano Date: Sat, 29 Jul 2023 00:28:04 -0600 Subject: [PATCH] fix: dark mode --- plugins/bombadil.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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