27 lines
712 B
Lua
27 lines
712 B
Lua
|
local M = {}
|
||
|
|
||
|
function M.config()
|
||
|
local present, colorizer = pcall(require, "colorizer")
|
||
|
if not present then
|
||
|
return
|
||
|
end
|
||
|
|
||
|
colorizer.setup(
|
||
|
{ "*" }, -- Highlight all files, but customize some others
|
||
|
{
|
||
|
RGB = true, -- #RGB hex codes
|
||
|
RRGGBB = true, -- #RRGGBB hex codes
|
||
|
names = false, -- "Name" codes like Blue
|
||
|
RRGGBBAA = false, -- #RRGGBBAA hex codes
|
||
|
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
|
||
|
}
|
||
|
)
|
||
|
end
|
||
|
|
||
|
return M
|
||
|
|