-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcolorizer.lua
More file actions
47 lines (46 loc) · 1.21 KB
/
Copy pathcolorizer.lua
File metadata and controls
47 lines (46 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
--- Color highlighting for hex, rgb, hsl codes
---
--- Author: @lararosekelley
--- Last Modified: January 25th, 2026
return {
{
"NvChad/nvim-colorizer.lua",
event = { "BufReadPre", "BufNewFile" },
opts = {
filetypes = {
"css",
"scss",
"sass",
"less",
"html",
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"vue",
"svelte",
"astro",
"json",
"yaml",
"toml",
"lua",
"vim",
"conf",
},
user_default_options = {
RGB = true, -- #RGB hex codes
RRGGBB = true, -- #RRGGBB hex codes
names = false, -- "Name" codes like Blue (can be slow)
RRGGBBAA = true, -- #RRGGBBAA hex codes
AARRGGBB = true, -- 0xAARRGGBB hex codes
rgb_fn = true, -- CSS rgb() and rgba() functions
hsl_fn = true, -- CSS hsl() and hsla() functions
css = true, -- Enable all CSS features
css_fn = true, -- Enable all CSS *functions*
mode = "background", -- "foreground", "background", or "virtualtext"
tailwind = true, -- Enable tailwind colors
virtualtext = "",
},
},
},
}