You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
2.6 KiB

-- Copyright (c) 2020-2021 Mofiqul Islam
-- MIT license, see LICENSE for more details.
local config = require('tccs.config')
local tccs = {}
local colors = {}
if vim.o.background == 'dark' then
colors.inactive = '#666666'
colors.bg = '#262626'
colors.bg2 = '#373737'
colors.fg = '#ffffff'
colors.red = '#f44747'
colors.green = '#4EC9B0'
colors.blue = '#0a7aca'
colors.lightblue = '#5CB6F8'
colors.yellow = '#ffaf00'
colors.pink = '#DDB6F2'
else
colors.inactive = '#888888'
colors.bg = '#F5F5F5'
colors.bg2 = '#E4E4E4'
colors.fg = '#343434'
colors.red = '#FF0000'
colors.green = '#008000'
colors.blue = '#AF00DB'
colors.lightblue = '#0451A5'
colors.yellow = '#ffaf00'
colors.pink = '#FFA3A3'
end
tccs.normal = {
a = { fg = vim.o.background == 'dark' and colors.fg or colors.bg, bg = colors.blue, gui = 'bold' },
b = { fg = colors.blue, bg = config.opts.transparent and 'NONE' or colors.bg2 },
c = { fg = colors.fg, bg = config.opts.transparent and 'NONE' or colors.bg },
}
tccs.visual = {
a = { fg = colors.bg, bg = colors.yellow, gui = 'bold' },
b = { fg = colors.yellow, bg = config.opts.transparent and 'NONE' or colors.bg },
}
tccs.inactive = {
a = { fg = colors.fg, bg = colors.bg, gui = 'bold' },
b = { fg = colors.inactive, bg = config.opts.transparent and 'NONE' or colors.bg },
c = { fg = colors.inactive, bg = config.opts.transparent and 'NONE' or colors.bg },
}
tccs.replace = {
a = { fg = vim.o.background == 'dark' and colors.bg or colors.fg, bg = colors.red, gui = 'bold' },
b = { fg = colors.red, bg = config.opts.transparent and 'NONE' or colors.bg2 },
c = { fg = colors.fg, bg = config.opts.transparent and 'NONE' or colors.bg },
}
tccs.insert = {
a = { fg = vim.o.background == 'dark' and colors.bg or colors.fg, bg = colors.green, gui = 'bold' },
b = { fg = colors.green, bg = config.opts.transparent and 'NONE' or colors.bg2 },
c = { fg = colors.fg, bg = config.opts.transparent and 'NONE' or colors.bg },
}
tccs.terminal = {
a = { fg = vim.o.background == 'dark' and colors.bg or colors.fg, bg = colors.green, gui = 'bold' },
b = { fg = colors.fg, bg = config.opts.transparent and 'NONE' or colors.bg2 },
c = { fg = colors.fg, bg = config.opts.transparent and 'NONE' or colors.bg },
}
tccs.command = {
a = { fg = vim.o.background == 'dark' and colors.bg or colors.fg, bg = colors.pink, gui = 'bold' },
b = { fg = colors.pink, bg = config.opts.transparent and 'NONE' or colors.bg2 },
c = { fg = colors.fg, bg = config.opts.transparent and 'NONE' or colors.bg },
}
return tccs