From f1c82d8b8b593a40da7e24a8fd4e11ce1ebe1019 Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Wed, 15 Jan 2025 22:09:30 -0500 Subject: [PATCH] Adjust light mode swapping --- init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 2f4f089..a0b483a 100644 --- a/init.lua +++ b/init.lua @@ -970,6 +970,7 @@ function file_exists(name) return f ~= nil and io.close(f) end -if file_exists("/home/aselimov/.config/.stlight") then +local home = os.getenv("HOME") +if file_exists(home .. "/.config/nvim/light_mode") then vim.opt.background = "light" end