mirror of
https://github.com/folke/snacks.nvim
synced 2025-12-23 08:47:57 +00:00
This commit is contained in:
parent
8afb609333
commit
5eea5f9428
1 changed files with 2 additions and 1 deletions
|
|
@ -147,9 +147,10 @@ function M.multi(opts)
|
|||
local finder = M.finder(source.finder)
|
||||
finders[#finders + 1] = function(fopts, ctx)
|
||||
fopts = Snacks.config.merge({}, vim.deepcopy(source), fopts)
|
||||
ctx = setmetatable({}, { __index = ctx })
|
||||
ctx._opts = fopts
|
||||
-- Update source filter when needed
|
||||
if not vim.tbl_isempty(fopts.filter or {}) then
|
||||
ctx = setmetatable({}, { __index = ctx })
|
||||
ctx.filter = ctx.filter:clone():init(fopts)
|
||||
end
|
||||
return finder(fopts, ctx)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue