feat: filters.custom can specify regex (#1112)
This commit is contained in:
committed by
GitHub
parent
4d8ab7d158
commit
00fd8aefe0
@@ -35,8 +35,10 @@ function M.should_ignore(path)
|
||||
end
|
||||
|
||||
local relpath = utils.path_relative(path, vim.loop.cwd())
|
||||
if M.ignore_list[relpath] == true or M.ignore_list[basename] == true then
|
||||
return true
|
||||
for pat, _ in pairs(M.ignore_list) do
|
||||
if vim.fn.match(relpath, pat) ~= -1 or vim.fn.match(basename, pat) ~= -1 then
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
local idx = path:match ".+()%.[^.]+$"
|
||||
|
||||
Reference in New Issue
Block a user