summaryrefslogtreecommitdiff
path: root/lua/99/ops
diff options
context:
space:
mode:
authortheprimeagain <the.primeagen@gmail.com>2026-02-08 18:38:21 -0700
committertheprimeagain <the.primeagen@gmail.com>2026-02-08 18:38:21 -0700
commit6cd4bc2c6c50145c05045a7d87780f61c7c9ca3a (patch)
tree877f1dafad8cdef12443418027d7ca7f47cdbe65 /lua/99/ops
parent16053ff8789288e5cb74852d5fe6514a13659c76 (diff)
downloada4-6cd4bc2c6c50145c05045a7d87780f61c7c9ca3a.tar.xz
a4-6cd4bc2c6c50145c05045a7d87780f61c7c9ca3a.zip
show in flight response
Diffstat (limited to 'lua/99/ops')
-rw-r--r--lua/99/ops/clean-up.lua5
-rw-r--r--lua/99/ops/over-range.lua2
-rw-r--r--lua/99/ops/search.lua2
3 files changed, 5 insertions, 4 deletions
diff --git a/lua/99/ops/clean-up.lua b/lua/99/ops/clean-up.lua
index 1522d61..ba76f01 100644
--- a/lua/99/ops/clean-up.lua
+++ b/lua/99/ops/clean-up.lua
@@ -1,7 +1,8 @@
---@param context _99.RequestContext
+---@param name string
---@param clean_up_fn fun(): nil
---@return fun(): nil
-return function(context, clean_up_fn)
+return function(context, name, clean_up_fn)
local called = false
local request_id = -1
local function clean_up()
@@ -13,7 +14,7 @@ return function(context, clean_up_fn)
clean_up_fn()
context._99:remove_active_request(request_id)
end
- request_id = context._99:add_active_request(clean_up, context.xid)
+ request_id = context._99:add_active_request(clean_up, context.xid, name)
return clean_up
end
diff --git a/lua/99/ops/over-range.lua b/lua/99/ops/over-range.lua
index 209be9f..b5c0f24 100644
--- a/lua/99/ops/over-range.lua
+++ b/lua/99/ops/over-range.lua
@@ -37,7 +37,7 @@ local function over_range(context, range, opts)
top_mark
)
local bottom_status = RequestStatus.new(250, 1, "Implementing", bottom_mark)
- local clean_up = make_clean_up(context, function()
+ local clean_up = make_clean_up(context, "Visual", function()
top_status:stop()
bottom_status:stop()
context:clear_marks()
diff --git a/lua/99/ops/search.lua b/lua/99/ops/search.lua
index a4017c0..f494734 100644
--- a/lua/99/ops/search.lua
+++ b/lua/99/ops/search.lua
@@ -27,7 +27,7 @@ local function search(context, opts)
-- "Implementing",
-- top_mark
-- )
- local clean_up = make_clean_up(context, function()
+ local clean_up = make_clean_up(context, "Search", function()
request:cancel()
end)