Fix file_ingore_patterns for tags and lsp (#309)
closes #299 authored by: @Conni2461
This commit is contained in:
@@ -439,11 +439,14 @@ function Picker:find()
|
|||||||
log.trace("Processing result... ", entry)
|
log.trace("Processing result... ", entry)
|
||||||
|
|
||||||
for _, v in ipairs(self.file_ignore_patterns or {}) do
|
for _, v in ipairs(self.file_ignore_patterns or {}) do
|
||||||
if string.find(entry.value, v) then
|
local file = type(entry.value) == 'string' and entry.value or entry.filename
|
||||||
|
if file then
|
||||||
|
if string.find(file, v) then
|
||||||
log.debug("SKPIPING", entry.value, "because", v)
|
log.debug("SKPIPING", entry.value, "because", v)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
local sort_ok, sort_score = nil, 0
|
local sort_ok, sort_score = nil, 0
|
||||||
if self.sorter then
|
if self.sorter then
|
||||||
|
|||||||
Reference in New Issue
Block a user