fix: remove duplicate lazyloaded items in colorscheme (#2951)

(cherry picked from commit 04dfe370b0)
This commit is contained in:
fcying
2024-03-18 08:28:10 +08:00
committed by Simon Hauser
parent d747440d64
commit 321d782c1d
+1 -1
View File
@@ -962,7 +962,7 @@ internal.colorscheme = function(opts)
colors = vim.list_extend(
colors,
vim.tbl_filter(function(color)
return color ~= before_color
return not vim.tbl_contains(colors, color)
end, vim.fn.getcompletion("", "color"))
)