From 037134ae890858f09e5dd5b8ec9890cdc246753b 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 (cherry picked from commit ad32a4c4535af9feae1f16129de22cfc57921ef8) --- lua/telescope/builtin/__files.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lua/telescope/builtin/__files.lua b/lua/telescope/builtin/__files.lua index ce5527d..df3ccc9 100644 --- a/lua/telescope/builtin/__files.lua +++ b/lua/telescope/builtin/__files.lua @@ -180,12 +180,12 @@ files.find_files = function(opts) return opts.find_command(opts) end return opts.find_command - elseif 1 == vim.fn.executable "fd" then - return { "fd", "--type", "f" } - elseif 1 == vim.fn.executable "fdfind" then - return { "fdfind", "--type", "f" } 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", "--color", "never" } + elseif 1 == vim.fn.executable "fdfind" then + 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