fix: find_files to force color=never (#2130)

Co-authored-by: Bryce Montano <brycesec@amazon.com>
(cherry picked from commit ad32a4c453)
This commit is contained in:
Bryce Montano
2022-08-13 11:07:31 +02:00
committed by Simon Hauser
parent 028dc2799d
commit 037134ae89
+5 -5
View File
@@ -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