This commit is contained in:
Simon Hauser
2021-01-12 22:26:12 +01:00
committed by GitHub
parent 6461b07454
commit 5701255097

View File

@@ -115,7 +115,10 @@ files.find_files = function(opts)
end end
elseif 1 == vim.fn.executable("find") then elseif 1 == vim.fn.executable("find") then
find_command = { 'find', '.', '-type', 'f' } find_command = { 'find', '.', '-type', 'f' }
if not hidden then vim.tbl_extend("error", find_command, {'-not', '-path', '*/.*'}) end if not hidden then
table.insert(find_command, { '-not', '-path', "*/.*" })
find_command = flatten(find_command)
end
if search_dirs then if search_dirs then
table.remove(find_command, 2) table.remove(find_command, 2)
for _,v in pairs(search_dirs) do for _,v in pairs(search_dirs) do