local M = {} 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 function M.setup(opts) local settings = require "no-clown-fiesta.settings" if opts then settings.set(opts) end M.load() end return M