Refactoring

This commit is contained in:
2023-08-14 06:05:38 +02:00
parent 5a83cc8f26
commit 2799848919
5 changed files with 321 additions and 322 deletions

View File

@@ -8,20 +8,20 @@ tccs.setup = config.setup
-- Load colorscheme with a given or default style
tccs.load = function()
if vim.fn.exists('syntax_on') then
vim.cmd('syntax reset')
end
vim.o.termguicolors = true
vim.g.colors_name = 'tccs'
theme.set_highlights(config.opts)
if config.opts.group_overrides then
for group, val in pairs(config.opts['group_overrides']) do
vim.api.nvim_set_hl(0, group, val)
end
if vim.fn.exists('syntax_on') then
vim.cmd('syntax reset')
end
vim.o.termguicolors = true
vim.g.colors_name = 'tccs'
theme.set_highlights(config.opts)
if config.opts.group_overrides then
for group, val in pairs(config.opts['group_overrides']) do
vim.api.nvim_set_hl(0, group, val)
end
end
end
return tccs