From 321d782c1dc2fd5c9877d9fa39a816bc6842f384 Mon Sep 17 00:00:00 2001 From: fcying Date: Mon, 18 Mar 2024 08:28:10 +0800 Subject: [PATCH] fix: remove duplicate lazyloaded items in colorscheme (#2951) (cherry picked from commit 04dfe370b06bc31f261b48eaa00d0d84b368becf) --- lua/telescope/builtin/__internal.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/telescope/builtin/__internal.lua b/lua/telescope/builtin/__internal.lua index 8c65e40e89..d73251eb7a 100644 --- a/lua/telescope/builtin/__internal.lua +++ b/lua/telescope/builtin/__internal.lua @@ -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")) )