config/nvim/colors/default.lua (view raw)
1 2 3 4 5 6 7 8 9 10 11 |
-- This file should only be used by the theme script with variables injected
-- If variables are not set, use fallback values
---@diagnostic disable-next-line: undefined-global
local mode = theme_mode or "dark"
---@diagnostic disable-next-line: undefined-global
local colors = theme_colors or "ayu"
vim.g.ayucolor = mode
vim.opt.background = mode
vim.cmd("colorscheme " .. colors)
|