|
|
@ -56,7 +56,19 @@ end
|
|
|
|
M.colorizer = function()
|
|
|
|
M.colorizer = function()
|
|
|
|
local present, colorizer = pcall(require, "colorizer")
|
|
|
|
local present, colorizer = pcall(require, "colorizer")
|
|
|
|
if present then
|
|
|
|
if present then
|
|
|
|
colorizer.setup()
|
|
|
|
colorizer.setup({ "*" }, {
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Available modes: foreground, background
|
|
|
|
|
|
|
|
mode = "background", -- Set the display mode.
|
|
|
|
|
|
|
|
})
|
|
|
|
vim.cmd "ColorizerReloadAllBuffers"
|
|
|
|
vim.cmd "ColorizerReloadAllBuffers"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|