File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -12,18 +12,26 @@ describe("colorbox.loader", function()
12
12
local github_actions = os.getenv (" GITHUB_ACTIONS" ) == " true"
13
13
local runtime = require (" colorbox.runtime" )
14
14
local loader = require (" colorbox.loader" )
15
+ local db = require (" colorbox.db" )
15
16
require (" colorbox" ).setup ({
16
17
debug = true ,
17
18
file_log = true ,
18
19
background = " dark" ,
19
20
})
20
21
22
+ local disabled_colorspecs = { [" zenbones-theme/zenbones.nvim" ] = true }
23
+
21
24
describe (" loader" , function ()
22
25
it (" load" , function ()
26
+ local color_name_to_color_specs_map = db .get_color_name_to_color_specs_map ()
27
+
23
28
-- if not github_actions then
24
29
local colors = runtime .colornames ()
25
30
for i , c in ipairs (colors ) do
26
- loader .load (c )
31
+ local colorspec = color_name_to_color_specs_map [c ]
32
+ if not disabled_colorspecs [colorspec .handle ] then
33
+ loader .load (c )
34
+ end
27
35
end
28
36
-- end
29
37
end )
You can’t perform that action at this time.
0 commit comments