summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorSimon Hauser <Simon-Hauser@outlook.de>2021-09-13 21:49:13 +0200
committerGitHub <noreply@github.com>2021-09-13 21:49:13 +0200
commit4380e453ca87afa7c8af7697d425b25f698f421e (patch)
tree432893eb7a49e6b106d48138a1fc88e4bf24e0f7 /lua
parent6d1440a8e5af43d50b0c1b744c1d88df927f1ea0 (diff)
fix: default make_entry (#1239)
from_string doesnt exist. Its called gen_from_string
Diffstat (limited to 'lua')
-rw-r--r--lua/telescope/finders.lua4
-rw-r--r--lua/telescope/finders/async_oneshot_finder.lua2
2 files changed, 3 insertions, 3 deletions
diff --git a/lua/telescope/finders.lua b/lua/telescope/finders.lua
index ea4b88b..d9aa810 100644
--- a/lua/telescope/finders.lua
+++ b/lua/telescope/finders.lua
@@ -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.from_string,
+ entry_maker = opts.entry_maker or make_entry.gen_from_string,
fn_command = opts.fn_command,
cwd = opts.cwd,
writer = opts.writer,
@@ -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.from_string,
+ entry_maker = opts.entry_maker or make_entry.gen_from_string,
}, self)
return obj
diff --git a/lua/telescope/finders/async_oneshot_finder.lua b/lua/telescope/finders/async_oneshot_finder.lua
index 37101fa..c75c685 100644
--- a/lua/telescope/finders/async_oneshot_finder.lua
+++ b/lua/telescope/finders/async_oneshot_finder.lua
@@ -9,7 +9,7 @@ local await_count = 1000
return function(opts)
opts = opts or {}
- local entry_maker = opts.entry_maker or make_entry.from_string
+ local entry_maker = opts.entry_maker or make_entry.gen_from_string
local cwd = opts.cwd
local fn_command = assert(opts.fn_command, "Must pass `fn_command`")