mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 16:39:04 +02:00
23 lines
879 B
Lua
23 lines
879 B
Lua
local status_ok, colorizer_cfg = pcall(require, "colorizer")
|
|
if not status_ok then
|
|
return
|
|
end
|
|
colorizer_cfg.setup({
|
|
DEFAULT_OPTIONS = {
|
|
RGB = true, -- #RGB hex codes
|
|
RRGGBB = true, -- #RRGGBB hex codes
|
|
names = true, -- "Name" codes like Blue
|
|
RRGGBBAA = true, -- #RRGGBBAA hex codes
|
|
rgb_fn = true, -- CSS rgb() and rgba() functions
|
|
hsl_fn = true, -- CSS hsl() and hsla() functions
|
|
css = true, -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB
|
|
css_fn = true, -- Enable all CSS *functions*: rgb_fn, hsl_fn
|
|
-- Available modes: foreground, background
|
|
mode = "background", -- Set the display mode.
|
|
},
|
|
filetypes = {
|
|
"*", -- Highlight all files, but customize some others.
|
|
css = { rgb_fn = true }, -- Enable parsing rgb(...) functions in css.
|
|
html = { names = false }, -- Disable parsing "names" like Blue or Gray
|
|
},
|
|
})
|