mirror of
https://github.com/tiyn/tccs.nvim.git
synced 2026-02-16 12:54:49 +01:00
initial commit
This commit is contained in:
27
lua/tccs/init.lua
Normal file
27
lua/tccs/init.lua
Normal file
@@ -0,0 +1,27 @@
|
||||
-- tccs color scheme
|
||||
local tccs = {}
|
||||
local config = require('tccs.config')
|
||||
local theme = require('tccs.theme')
|
||||
|
||||
-- Pass setup to config module
|
||||
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
|
||||
end
|
||||
end
|
||||
|
||||
return tccs
|
||||
Reference in New Issue
Block a user