27 lines
1012 B
Lua
27 lines
1012 B
Lua
return {
|
|
event = "BufReadPre",
|
|
config = function()
|
|
require("colorizer").setup({
|
|
user_default_options = {
|
|
RGB = true, -- #RGB hex codes
|
|
RRGGBB = true, -- #RRGGBB hex codes
|
|
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 = "■",
|
|
},
|
|
})
|
|
|
|
vim.cmd(
|
|
[[autocmd ColorScheme * lua package.loaded['colorizer'] = nil; require('colorizer').setup(); require('colorizer').attach_to_buffer(0)]]
|
|
)
|
|
end,
|
|
}
|