mirror of
https://github.com/tiyn/tccs.nvim.git
synced 2026-02-16 12:54:49 +01:00
Refactoring
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user