25 lines
869 B
Lua
25 lines
869 B
Lua
|
return {
|
||
|
'NvChad/nvim-colorizer.lua',
|
||
|
-- event = 'BufReadPre',
|
||
|
cmd = 'ColorizerToggle',
|
||
|
opts = {
|
||
|
filetypes = { '*', '!lazy' },
|
||
|
buftype = { '*', '!prompt', '!nofile' },
|
||
|
user_default_options = {
|
||
|
RGB = true, -- #RGB hex codes
|
||
|
RRGGBB = true, -- #RRGGBB hex codes #ffffff
|
||
|
names = false, -- "Name" codes like Blue
|
||
|
RRGGBBAA = true, -- #RRGGBBAA hex codes
|
||
|
AARRGGBB = false, -- 0xAARRGGBB 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 = true, -- Enable all CSS *functions*: rgb_fn, hsl_fn
|
||
|
-- Available modes: foreground, background
|
||
|
-- Available modes for `mode`: foreground, background, virtualtext
|
||
|
-- mode = "background", -- Set the display mode.
|
||
|
-- virtualtext = "■",
|
||
|
},
|
||
|
},
|
||
|
}
|