Fix file_ingore_patterns for tags and lsp (#309)

closes #299 

authored by: @Conni2461
This commit is contained in:
Simon Hauser
2020-12-03 13:50:27 +01:00
committed by GitHub
parent 486ab56776
commit 2e5ee9d43e

View File

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