switched to NvChad colorizer
This commit is contained in:
@@ -64,10 +64,10 @@ return {
|
||||
|
||||
-- Color preview for CSS, HTML, etc.
|
||||
{
|
||||
"norcalli/nvim-colorizer.lua",
|
||||
"NvChad/nvim-colorizer.lua",
|
||||
event = { "BufReadPre", "BufNewFile" },
|
||||
config = function()
|
||||
require("colorizer").setup({
|
||||
opts = {
|
||||
filetypes = {
|
||||
"css",
|
||||
"scss",
|
||||
"sass",
|
||||
@@ -83,19 +83,23 @@ return {
|
||||
"yaml",
|
||||
"toml",
|
||||
"conf",
|
||||
}, {
|
||||
-- Default options for all filetypes
|
||||
RGB = true, -- #RGB hex codes
|
||||
RRGGBB = true, -- #RRGGBB hex codes
|
||||
RRGGBBAA = true, -- #RRGGBBAA hex codes
|
||||
names = true, -- "Name" codes like Blue or red
|
||||
rgb_fn = true, -- CSS rgb() and rgba()
|
||||
hsl_fn = true, -- CSS hsl() and hsla()
|
||||
css = true, -- Enable all CSS features
|
||||
css_fn = true, -- Enable all CSS *functions*
|
||||
mode = "background", -- Set the display mode: foreground, background, virtualtext
|
||||
})
|
||||
end,
|
||||
},
|
||||
user_default_options = {
|
||||
RGB = true,
|
||||
RRGGBB = true,
|
||||
RRGGBBAA = true,
|
||||
names = true,
|
||||
rgb_fn = true,
|
||||
hsl_fn = true,
|
||||
css = true,
|
||||
css_fn = true,
|
||||
mode = "background",
|
||||
tailwind = false,
|
||||
sass = { enable = true, parsers = { "css" } },
|
||||
virtualtext = "■",
|
||||
always_update = true, -- Update color values even if buffer is not focused
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
-- Better terminal integration
|
||||
|
||||
Reference in New Issue
Block a user