18 lines
626 B
Lua
18 lines
626 B
Lua
|
local status_ok, colorizer = pcall(require, "colorizer")
|
||
|
if not status_ok then
|
||
|
return
|
||
|
end
|
||
|
|
||
|
colorizer.setup({ "*" }, {
|
||
|
RGB = true, -- #RGB hex codes
|
||
|
RRGGBB = true, -- #RRGGBB hex codes
|
||
|
names = false, -- "Name" codes like Blue oe blue
|
||
|
RRGGBBAA = true, -- #RRGGBBAA hex codes
|
||
|
rgb_fn = true, -- CSS rgb() and rgba() functions
|
||
|
hsl_fn = true, -- 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
|
||
|
-- Available modes: foreground, background, virtualtext
|
||
|
mode = "background", -- Set the display mode.)
|
||
|
})
|