Add toggle to keep light mode based on terminal colorscheme

This commit is contained in:
Alex Selimov 2024-11-11 21:59:14 -05:00
parent 41d85c9f70
commit 98bc388c4a

View File

@ -893,3 +893,12 @@ vim.api.nvim_create_user_command("FormatEnable", function()
end, {
desc = "Re-enable autoformat-on-save",
})
function file_exists(name)
local f = io.open(name, "r")
return f ~= nil and io.close(f)
end
if file_exists("/home/aselimov/.config/.stlight") then
vim.opt.background = "light"
end