Add toggle to keep light mode based on terminal colorscheme

master
Alex Selimov 1 week ago
parent 41d85c9f70
commit 98bc388c4a

@ -893,3 +893,12 @@ vim.api.nvim_create_user_command("FormatEnable", function()
end, { end, {
desc = "Re-enable autoformat-on-save", 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

Loading…
Cancel
Save