File tree 2 files changed +29
-2
lines changed
2 files changed +29
-2
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,12 @@ function M.add_additional_color_chars(chars)
97
97
local char = chars :sub (i , i )
98
98
local char_byte = string.byte (char )
99
99
-- It's possible to define `custom_names` with spaces. Ignore space: it's by empty space that separate things may exist 🧘
100
- if char_byte ~= 32 and byte_category [char_byte ] == 0 then
100
+ if
101
+ char_byte ~= 32
102
+ and char_byte ~= (" '" ):byte ()
103
+ and char_byte ~= (' "' ):byte ()
104
+ and byte_category [char_byte ] == 0
105
+ then
101
106
additional_color_chars = additional_color_chars .. char
102
107
byte_category [char_byte ] = 1
103
108
end
235
240
--- Returns sha256 hash of lua table
236
241
--- @param tbl table : Table to be hashed
237
242
function M .hash_table (tbl )
243
+ -- local json_string = vim.json.encode(tbl, { escape_slash = true })
238
244
local json_string = vim .json .encode (tbl )
239
- return vim .fn .sha256 (json_string )
245
+ local hash = vim .fn .sha256 (json_string )
246
+ return hash
240
247
end
241
248
242
249
return M
Original file line number Diff line number Diff line change @@ -22,6 +22,22 @@ local opts = {
22
22
[" five@six" ] = " #e9e240" ,
23
23
[" seven!eight" ] = " #a9e042" ,
24
24
[" nine!!ten" ] = " #09e392" ,
25
+ [" 'r'" ] = " #FF0000" ,
26
+ [' "r"' ] = " #FF0000" ,
27
+ [" 'g'" ] = " #00FF00" ,
28
+ [' "g"' ] = " #00FF00" ,
29
+ [" 'b'" ] = " #0000FF" ,
30
+ [' "b"' ] = " #0000FF" ,
31
+ [" 'c'" ] = " #00FFFF" ,
32
+ [' "c"' ] = " #00FFFF" ,
33
+ [" 'm'" ] = " #FF00FF" ,
34
+ [' "m"' ] = " #FF00FF" ,
35
+ [" 'y'" ] = " #FFFF00" ,
36
+ [' "y"' ] = " #FFFF00" ,
37
+ [" 'k'" ] = " #000000" ,
38
+ [' "k"' ] = " #000000" ,
39
+ [" 'w'" ] = " #FFFFFF" ,
40
+ [' "w"' ] = " #FFFFFF" ,
25
41
},
26
42
},
27
43
},
@@ -101,6 +117,10 @@ From table in filetype definiton (lua)
101
117
FIX: .
102
118
FIX: fix
103
119
120
+ 'r' 'g' 'b' 'c' 'm' 'y' 'k' 'w'
121
+ "r" "g" "b" "c" "m" "y" "k" "w"
122
+ r g b c m y k w
123
+
104
124
Tailwind names:
105
125
accent-blue-100 bg-gray-200 border-black border-x-zinc-300 border-y-yellow-400 border-t-teal-500 border-r-neutral-600 border-b-blue-700 border-l-lime-800 caret-indigo-900 decoration-sky-950 divide-white fill-violet-950 from-indigo-900 shadow-blue-800 stroke-sky-700 text-cyan-500 to-red-400 via-green-300 ring-emerald-200 ring-offset-violet-100
106
126
You can’t perform that action at this time.
0 commit comments