I have a shortcut to set the background light, dark, or transparent. I want to use a different color scheme for when it is dark or light.
How would I go about implementing it?
I don't know programming and this is my failed try.
if vim.cmd("set background") == "background=light" then
vim.cmd("colorscheme modus-operandi")
end
I think I need something like this, but in lua
.
Here is my config.