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 committed Aug 8, 2022
1 parent 4725867 commit 6fe3132
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 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(),
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(),
}, self)

return obj
Expand Down

0 comments on commit 6fe3132

Please sign in to comment.