diff options
| author | theprimeagain <the.primeagen@gmail.com> | 2026-02-08 17:50:45 -0700 |
|---|---|---|
| committer | theprimeagain <the.primeagen@gmail.com> | 2026-02-08 17:50:45 -0700 |
| commit | 3d2501afccbc9fab5b0f18811fb7ff55054eda6f (patch) | |
| tree | a88469a9ffe0836634df985e575ae48896379cd8 /lua/99/init.lua | |
| parent | e90ab98e7ecca5ca7a7ae7ff39805baffc615edb (diff) | |
| download | a4-3d2501afccbc9fab5b0f18811fb7ff55054eda6f.tar.xz a4-3d2501afccbc9fab5b0f18811fb7ff55054eda6f.zip | |
throbber, test, and better titling.
Diffstat (limited to 'lua/99/init.lua')
| -rw-r--r-- | lua/99/init.lua | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lua/99/init.lua b/lua/99/init.lua index dcb1aa3..eb580c6 100644 --- a/lua/99/init.lua +++ b/lua/99/init.lua @@ -255,10 +255,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) @@ -330,7 +331,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 @@ -364,7 +365,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 |
