From ad32a4c4535af9feae1f16129de22cfc57921ef8 Mon Sep 17 00:00:00 2001 From: Bryce Montano Date: Sat, 13 Aug 2022 03:03:34 -0600 Subject: [PATCH] fix: find_files to force color=never (#2130) Co-authored-by: Bryce Montano --- lua/telescope/builtin/__files.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/telescope/builtin/__files.lua b/lua/telescope/builtin/__files.lua index 33b1c50..df3ccc9 100644 --- a/lua/telescope/builtin/__files.lua +++ b/lua/telescope/builtin/__files.lua @@ -181,11 +181,11 @@ files.find_files = function(opts) end return opts.find_command elseif 1 == vim.fn.executable "rg" then - return { "rg", "--files" } + return { "rg", "--files", "--color", "never" } elseif 1 == vim.fn.executable "fd" then - return { "fd", "--type", "f" } + return { "fd", "--type", "f", "--color", "never" } elseif 1 == vim.fn.executable "fdfind" then - return { "fdfind", "--type", "f" } + return { "fdfind", "--type", "f", "--color", "never" } elseif 1 == vim.fn.executable "find" and vim.fn.has "win32" == 0 then return { "find", ".", "-type", "f" } elseif 1 == vim.fn.executable "where" then