blob: 8bad306610b8566fa90dcb089d4d74664359a5a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
local M = {}
function M.setup(opts)
local settings = require "no-clown-fiesta.settings"
if opts then
settings.set(opts)
end
end
function M.load()
local settings = require "no-clown-fiesta.settings"
local opts = settings.opts
vim.api.nvim_command "hi clear"
if vim.fn.exists "syntax_on" then
vim.api.nvim_command "syntax reset"
end
vim.o.background = "dark"
vim.o.termguicolors = true
vim.g.colors_name = "no-clown-fiesta"
local util = require "no-clown-fiesta.util"
local palette = require "no-clown-fiesta.palette"
local groups = require "no-clown-fiesta.groups"
for _, group in ipairs(groups) do
group = group.highlight(palette, opts)
util.initialise(group)
end
end
return M
|