summaryrefslogtreecommitdiff
path: root/lua/clever_f
diff options
context:
space:
mode:
Diffstat (limited to 'lua/clever_f')
-rw-r--r--lua/clever_f/acquisition_service.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/lua/clever_f/acquisition_service.lua b/lua/clever_f/acquisition_service.lua
index 0b6a618..b1bb983 100644
--- a/lua/clever_f/acquisition_service.lua
+++ b/lua/clever_f/acquisition_service.lua
@@ -17,6 +17,7 @@ M.TemporaryResourceScope = TemporaryResourceScope
M.RepeatedDirection = {
SAME = "same",
}
+M.PROMPT = "clever-f: "
local request_records = setmetatable({}, { __mode = "k" })
local service_records = setmetatable({}, { __mode = "k" })
@@ -335,6 +336,9 @@ function AcquisitionService:acquire(descriptor, context, position, count, macro_
))
record.host:redraw("screen")
end
+ if acquisition.show_prompt and not request.macro_state.executing then
+ record.host:show_prompt(M.PROMPT)
+ end
return request
end