Skip to content

Commit

Permalink
fix(lsp): if_nil <0.10 compat (#3184)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamestrew committed Jun 25, 2024
1 parent 58ec6ec commit 61a4a61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/telescope/builtin/__lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ end
---@param opts table
---@return vim.lsp.util.locations_to_items.ret[]
local function filter_file_ignore_patters(items, opts)
local file_ignore_patterns = vim.F.if_nil(opts.file_ignore_patterns, conf.file_ignore_patterns, {})
local file_ignore_patterns = vim.F.if_nil(opts.file_ignore_patterns, conf.file_ignore_patterns)
file_ignore_patterns = file_ignore_patterns or {}
if vim.tbl_isempty(file_ignore_patterns) then
return items
end
Expand Down

0 comments on commit 61a4a61

Please sign in to comment.