updated the colorizer

This commit is contained in:
2026-01-13 11:58:54 -07:00
parent 11e0a7408e
commit c70e1ae1d5
2 changed files with 32 additions and 19 deletions

View File

@@ -66,24 +66,36 @@ return {
{
"norcalli/nvim-colorizer.lua",
event = { "BufReadPre", "BufNewFile" },
opts = {
"css",
"scss",
"html",
"javascript",
"typescript",
"javascriptreact",
"typescriptreact",
"vue",
"svelte",
"lua",
"yaml",
"toml",
"conf",
css = { rgb_fn = true, hsl_fn = true },
scss = { rgb_fn = true, hsl_fn = true },
html = { names = false },
},
config = function()
require("colorizer").setup({
"css",
"scss",
"sass",
"less",
"html",
"javascript",
"typescript",
"javascriptreact",
"typescriptreact",
"vue",
"svelte",
"lua",
"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,
},
-- Better terminal integration