2022-02-28 05:11:19 +00:00
|
|
|
local M = {}
|
|
|
|
|
|
|
|
function M.config()
|
2023-01-10 18:21:09 +00:00
|
|
|
local present, colorizer = pcall(require, 'colorizer')
|
2022-02-28 05:11:19 +00:00
|
|
|
if not present then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
colorizer.setup(
|
2023-01-10 18:21:09 +00:00
|
|
|
{ '*' }, -- Highlight all files, but customize some others
|
2022-02-28 05:11:19 +00:00
|
|
|
{
|
2023-01-10 18:21:09 +00:00
|
|
|
RGB = true, -- #RGB hex codes
|
|
|
|
RRGGBB = true, -- #RRGGBB hex codes
|
|
|
|
names = false, -- "Name" codes like Blue
|
2022-02-28 05:11:19 +00:00
|
|
|
RRGGBBAA = false, -- #RRGGBBAA hex codes
|
2023-01-10 18:21:09 +00:00
|
|
|
rgb_fn = false, -- CSS rgb() and rgba() functions
|
|
|
|
hsl_fn = false, -- CSS hsl() and hsla() functions
|
|
|
|
css = false, -- Enable all css features: rgb_fn, hsl_fn, names, RGB, RRGGBB
|
|
|
|
css_fn = false, -- Enable all CSS *functions*: rgb_fn, hsl_fn
|
|
|
|
mode = 'foreground', -- Set the display mode
|
2022-02-28 05:11:19 +00:00
|
|
|
}
|
|
|
|
)
|
|
|
|
end
|
|
|
|
|
|
|
|
return M
|