diff options
| author | Simon Hauser <Simon-Hauser@outlook.de> | 2020-12-03 13:50:27 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-03 15:50:27 +0300 |
| commit | 2e5ee9d43ed6eeb9d80e105406fa7e187f56931e (patch) | |
| tree | 6fcbf0abbc04881a23fab2f9356829f15baea6da /lua/telescope/pickers.lua | |
| parent | 486ab5677618ffc6b05b4f071f79349fa4081022 (diff) | |
Fix file_ingore_patterns for tags and lsp (#309)
closes #299
authored by: @Conni2461
Diffstat (limited to 'lua/telescope/pickers.lua')
| -rw-r--r-- | lua/telescope/pickers.lua | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lua/telescope/pickers.lua b/lua/telescope/pickers.lua index b066bd6..bf35aa2 100644 --- a/lua/telescope/pickers.lua +++ b/lua/telescope/pickers.lua @@ -439,9 +439,12 @@ function Picker:find() log.trace("Processing result... ", entry) for _, v in ipairs(self.file_ignore_patterns or {}) do - if string.find(entry.value, v) then - log.debug("SKPIPING", entry.value, "because", v) - return + 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) + return + end end end |
