mirror of
https://github.com/tiyn/tccs.nvim.git
synced 2026-02-16 12:54:49 +01:00
Refactoring
This commit is contained in:
@@ -1,56 +1,56 @@
|
||||
local colors = {}
|
||||
colors.get_colors = function()
|
||||
local mycolors = {} ---@type table<string,string>
|
||||
local mycolors = {} ---@type table<string,string>
|
||||
|
||||
mycolors = {
|
||||
-- common
|
||||
accent = "#C586C0",
|
||||
bg = "#191919",
|
||||
bg_alt = "#121212",
|
||||
fg = "#D4D4D4",
|
||||
ui = "#4D5566",
|
||||
-- syntax
|
||||
tag = "#9CDCFE",
|
||||
func = "#DCDCAA",
|
||||
entity = "#9CDCFE",
|
||||
string = "#CE9178",
|
||||
regexp = "#D16969",
|
||||
markup = "#C586C0",
|
||||
keyword = "#C586C0",
|
||||
special = "#D7BA7D",
|
||||
comment = "#608B4E",
|
||||
constant = "#D4D4D4",
|
||||
operator = "#C586C0",
|
||||
error = "#FF0000",
|
||||
-- extended color palette
|
||||
fg_idle = "#FFFF00",
|
||||
warning = "#FFFF00",
|
||||
-- ui
|
||||
line = "#00010A",
|
||||
line_alt = "#772222",
|
||||
panel_bg = "#0D1016",
|
||||
panel_shadow = "#00010A",
|
||||
panel_border = "#000000",
|
||||
gutter_normal = "#323945",
|
||||
gutter_active = "#464D5E",
|
||||
selection_bg = "#273747",
|
||||
selection_inactive = "#1B2733",
|
||||
selection_border = "#304357",
|
||||
guide_active = "#393F4D",
|
||||
guide_normal = "#242A35",
|
||||
-- vcs
|
||||
vcs_added = "#608B4E",
|
||||
vcs_modified = "#9CDCFE",
|
||||
vcs_removed = "#D16969",
|
||||
}
|
||||
mycolors = {
|
||||
-- common
|
||||
accent = "#C586C0",
|
||||
bg = "#191919",
|
||||
bg_alt = "#121212",
|
||||
fg = "#D4D4D4",
|
||||
ui = "#4D5566",
|
||||
-- syntax
|
||||
tag = "#9CDCFE",
|
||||
func = "#DCDCAA",
|
||||
entity = "#9CDCFE",
|
||||
string = "#CE9178",
|
||||
regexp = "#D16969",
|
||||
markup = "#C586C0",
|
||||
keyword = "#C586C0",
|
||||
special = "#D7BA7D",
|
||||
comment = "#608B4E",
|
||||
constant = "#D4D4D4",
|
||||
operator = "#C586C0",
|
||||
error = "#FF0000",
|
||||
-- extended color palette
|
||||
fg_idle = "#FFFF00",
|
||||
warning = "#FFFF00",
|
||||
-- ui
|
||||
line = "#00010A",
|
||||
line_alt = "#772222",
|
||||
panel_bg = "#0D1016",
|
||||
panel_shadow = "#00010A",
|
||||
panel_border = "#000000",
|
||||
gutter_normal = "#323945",
|
||||
gutter_active = "#464D5E",
|
||||
selection_bg = "#273747",
|
||||
selection_inactive = "#1B2733",
|
||||
selection_border = "#304357",
|
||||
guide_active = "#393F4D",
|
||||
guide_normal = "#242A35",
|
||||
-- vcs
|
||||
vcs_added = "#608B4E",
|
||||
vcs_modified = "#9CDCFE",
|
||||
vcs_removed = "#D16969",
|
||||
}
|
||||
|
||||
-- Extend the colors with overrides passed by `color_overrides`
|
||||
local config = require('tccs.config')
|
||||
if config.opts.color_overrides then
|
||||
mycolors = vim.tbl_extend('force', mycolors, config.opts.color_overrides)
|
||||
end
|
||||
-- Extend the colors with overrides passed by `color_overrides`
|
||||
local config = require('tccs.config')
|
||||
if config.opts.color_overrides then
|
||||
mycolors = vim.tbl_extend('force', mycolors, config.opts.color_overrides)
|
||||
end
|
||||
|
||||
return mycolors
|
||||
return mycolors
|
||||
end
|
||||
|
||||
return colors
|
||||
|
||||
Reference in New Issue
Block a user