summaryrefslogtreecommitdiff
path: root/lua/99/init.lua
diff options
context:
space:
mode:
authorcodegirl007 <s.raide@gmail.com>2026-02-08 18:04:32 -0800
committerGitHub <noreply@github.com>2026-02-08 18:04:32 -0800
commite4050fe6164765202814b353db43da75c1947af6 (patch)
tree8e9fe8b195edcde1d3b37134be672655d169f5e1 /lua/99/init.lua
parent17be2bff90a22d8bafc102e3ca1730bb05026841 (diff)
parent76acc1d15d8a2161d43b60ee8c5d49c1a5885c60 (diff)
downloada4-e4050fe6164765202814b353db43da75c1947af6.tar.xz
a4-e4050fe6164765202814b353db43da75c1947af6.zip
Merge branch 'master' into back-that-hash-up
Diffstat (limited to 'lua/99/init.lua')
-rw-r--r--lua/99/init.lua9
1 files changed, 5 insertions, 4 deletions
diff --git a/lua/99/init.lua b/lua/99/init.lua
index d48c26d..4f27543 100644
--- a/lua/99/init.lua
+++ b/lua/99/init.lua
@@ -256,10 +256,11 @@ local function set_selection_marks()
end
--- @param cb fun(context: _99.RequestContext, o: _99.ops.Opts?): nil
+--- @param name string
--- @param context _99.RequestContext
--- @param opts _99.ops.Opts
-local function capture_prompt(cb, context, opts)
- Window.capture_input({
+local function capture_prompt(cb, name, context, opts)
+ Window.capture_input(name, {
--- @param ok boolean
--- @param response string
cb = function(ok, response)
@@ -331,7 +332,7 @@ function _99.search(opts)
ops.search(context, o)
return
else
- capture_prompt(ops.search, context, o)
+ capture_prompt(ops.search, "Search", context, o)
end
end
@@ -368,7 +369,7 @@ function _99.visual(opts)
if opts.additional_prompt then
perform_range()
else
- capture_prompt(perform_range, context, opts)
+ capture_prompt(perform_range, "Visual", context, opts)
end
end