summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryce Montano <brycemontano1@gmail.com>2022-08-13 03:03:34 -0600
committerGitHub <noreply@github.com>2022-08-13 11:03:34 +0200
commitad32a4c4535af9feae1f16129de22cfc57921ef8 (patch)
tree35504ef88555d9317cde081d06d6dff2e9e2a819
parentc6cd725bc0ffd19e07679a22bacf233d9af866db (diff)
fix: find_files to force color=never (#2130)
Co-authored-by: Bryce Montano <brycesec@amazon.com>
-rw-r--r--lua/telescope/builtin/__files.lua6
1 files 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