switched to NvChad colorizer

This commit is contained in:
2026-01-13 12:51:37 -07:00
parent c70e1ae1d5
commit aa84c4997e
2 changed files with 21 additions and 17 deletions

View File

@@ -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