|
20 | 20 | - [Trie](#trie)
|
21 | 21 | - [Test](#test)
|
22 | 22 | - [Benchmark](#benchmark)
|
23 |
| - - [Results](#results) |
24 | 23 | - [Extras](#extras)
|
25 | 24 | - [TODO](#todo)
|
26 | 25 | <!--toc:end-->
|
@@ -135,8 +134,8 @@ library to do custom highlighting themselves.
|
135 | 134 | },
|
136 | 135 | -- Expects a table of color name to #RRGGBB value pairs. # is optional
|
137 | 136 | -- Example: { cool = "#107dac", ["notcool"] = "ee9240" }
|
138 |
| - -- Set to false|nil to disable, for example when setting filetype options |
139 |
| - names_custom = false, -- Custom names to be highlighted: table|function|false|nil |
| 137 | + -- Set to false to disable, for example when setting filetype options |
| 138 | + names_custom = false, -- Custom names to be highlighted: table|function|false |
140 | 139 | RGB = true, -- #RGB hex codes
|
141 | 140 | RGBA = true, -- #RGBA hex codes
|
142 | 141 | RRGGBB = true, -- #RRGGBB hex codes
|
@@ -229,6 +228,7 @@ require("colorizer").setup({
|
229 | 228 | })
|
230 | 229 |
|
231 | 230 | -- Apply names_custom from theme
|
| 231 | +-- names_custom are stored by hashed key to allow filetype to override `user_default_options` |
232 | 232 | require("colorizer").setup({
|
233 | 233 | names = true,
|
234 | 234 | names_custom = function()
|
@@ -430,8 +430,6 @@ make trie-benchmark
|
430 | 430 | scripts/trie-benchmark.sh
|
431 | 431 | ```
|
432 | 432 |
|
433 |
| -##### Results |
434 |
| - |
435 | 433 | Inserting 7245 words: using uppercase, lowercase, camelcase from `vim.api.nvim_get_color_map()` and Tailwind colors
|
436 | 434 |
|
437 | 435 | | Initial Capacity | Resize Count | Insert Time (ms) | Lookup Time (ms) |
|
|
0 commit comments