Skip to content

Commit

Permalink
chore(colorbox.nvim): disable specific colors that require extra depe…
Browse files Browse the repository at this point in the history
…ndencies (#684)
  • Loading branch information
linrongbin16 authored Feb 2, 2025
1 parent 61f617e commit 8ea45e5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lua/configs/linrongbin16/colorbox-nvim/config.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
local disabled_colors = {
["navarasu/onedark.nvim"] = true,
["zenbones-theme/zenbones.nvim"] = true,
}

require("colorbox").setup({
background = "dark",
filter = {
Expand All @@ -6,7 +11,7 @@ require("colorbox").setup({
return spec.github_stars >= 800
end,
function(color, spec)
return spec.handle ~= "navarasu/onedark.nvim"
return type(spec.handle) == "string" and not disabled_colors[spec.handle]
end,
},
})

0 comments on commit 8ea45e5

Please sign in to comment.