local status_ok, ayu = pcall(require, "ayu") if not status_ok then return end ayu.setup({ mirage = true, }) vim.cmd [[let ayucolor="mirage"]] vim.cmd [[colorscheme ayu]] local function set_colorscheme() local bg = vim.o.background if bg == "light" then vim.cmd [[colorscheme github]] else vim.cmd [[colorscheme ayu]] end end vim.api.nvim_create_autocmd("OptionSet", {pattern = "background", callback = set_colorscheme})