23 lines
429 B
Lua
23 lines
429 B
Lua
local config = require "nightly_cm.config"
|
|
local M = {}
|
|
|
|
M.setup = config.setup
|
|
|
|
function M.load()
|
|
-- only needed to clear when not the default colorscheme
|
|
if vim.g.colors_name then
|
|
vim.cmd "hi clear"
|
|
end
|
|
|
|
-- enable termguicolors
|
|
if vim.api.nvim_get_option "termguicolors" == false then
|
|
vim.opt.termguicolors = true
|
|
end
|
|
|
|
vim.g.colors_name = "nightly_cm"
|
|
|
|
require("nightly_cm.theme").setup()
|
|
end
|
|
|
|
return M
|