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

Co-authored-by: Bryce Montano <brycesec@amazon.com>
This commit is contained in:
Bryce Montano
2022-08-13 03:03:34 -06:00
committed by GitHub
parent c6cd725bc0
commit ad32a4c453

View File

@@ -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