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

@@ -24,7 +24,7 @@
"mini.pairs": { "branch": "main", "commit": "d5a29b6254dad07757832db505ea5aeab9aad43a" },
"noice.nvim": { "branch": "main", "commit": "7bfd942445fb63089b59f97ca487d605e715f155" },
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
"nvim-colorizer.lua": { "branch": "master", "commit": "a065833f35a3a7cc3ef137ac88b5381da2ba302e" },
"nvim-colorizer.lua": { "branch": "master", "commit": "81e676d3203c9eb6e4c0ccf1eba1679296ef923f" },
"nvim-dap": { "branch": "master", "commit": "cdfd55a133f63228c55f91378f12908cb2a78ded" },
"nvim-dap-go": { "branch": "main", "commit": "b4421153ead5d726603b02743ea40cf26a51ed5f" },
"nvim-dap-ui": { "branch": "master", "commit": "cf91d5e2d07c72903d052f5207511bf7ecdb7122" },

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