This commit is contained in:
Nikos Papadakis 2023-06-16 14:26:45 +03:00
parent a63350d437
commit b5548d3690
Signed by untrusted user who does not match committer: nikos
GPG key ID: 78871F9905ADFF02

View file

@ -24,13 +24,13 @@ local function project()
}
local find_command = nil
if FD_EXISTS then
if FD_EXISTS == 1 then
find_command = { "fd", "--hidden", "-t", "f" }
for _, value in ipairs(exclusions) do
table.insert(find_command, "--exclude")
table.insert(find_command, value)
end
elseif RIPGREP_EXISTS then
elseif RIPGREP_EXISTS == 1 then
find_command = { "rg", "--files", "--hidden", "--glob", "!**/.git/*" }
end