Skip to content

Commit

Permalink
Update finders.lua
Browse files Browse the repository at this point in the history
make_entry.gen_from_string is entry_maker factory
  • Loading branch information
mnowotnik authored and Conni2461 committed Aug 13, 2022
1 parent 4725867 commit b922c1b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/telescope/finders.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function JobFinder:new(opts)
assert(not opts.static, "`static` should be used with finder.new_oneshot_job")

local obj = setmetatable({
entry_maker = opts.entry_maker or make_entry.gen_from_string,
entry_maker = opts.entry_maker or make_entry.gen_from_string(opts),
fn_command = opts.fn_command,
cwd = opts.cwd,
writer = opts.writer,
Expand Down Expand Up @@ -122,7 +122,7 @@ function DynamicFinder:new(opts)
local obj = setmetatable({
curr_buf = opts.curr_buf,
fn = opts.fn,
entry_maker = opts.entry_maker or make_entry.gen_from_string,
entry_maker = opts.entry_maker or make_entry.gen_from_string(opts),
}, self)

return obj
Expand Down Expand Up @@ -180,7 +180,7 @@ finders.new_oneshot_job = function(command_list, opts)
local command = table.remove(command_list, 1)

return async_oneshot_finder {
entry_maker = opts.entry_maker or make_entry.gen_from_string(),
entry_maker = opts.entry_maker or make_entry.gen_from_string(opts),

cwd = opts.cwd,
maximum_results = opts.maximum_results,
Expand Down

0 comments on commit b922c1b

Please sign in to comment.