summaryrefslogtreecommitdiff
path: root/lua/99/prompt-settings.lua
diff options
context:
space:
mode:
authorWayne-Cole <77279425+Wacky404@users.noreply.github.com>2026-06-10 11:06:55 -0500
committerWayne-Cole <77279425+Wacky404@users.noreply.github.com>2026-06-10 11:06:55 -0500
commit7e8f65974ddd27a4dc131f2455933c0dc2e5d1ea (patch)
tree5ff2e92e22800b554ada35474e2437b6e0e05f1d /lua/99/prompt-settings.lua
parent53c60a9213f4e899bc411373ea2f0c20cf716826 (diff)
downloada4-7e8f65974ddd27a4dc131f2455933c0dc2e5d1ea.tar.xz
a4-7e8f65974ddd27a4dc131f2455933c0dc2e5d1ea.zip
fix: prototype of visual buf replacement on demand is workingHEADmaster
Diffstat (limited to 'lua/99/prompt-settings.lua')
-rw-r--r--lua/99/prompt-settings.lua29
1 files changed, 3 insertions, 26 deletions
diff --git a/lua/99/prompt-settings.lua b/lua/99/prompt-settings.lua
index c221995..a311d68 100644
--- a/lua/99/prompt-settings.lua
+++ b/lua/99/prompt-settings.lua
@@ -115,36 +115,13 @@ Always use the temporary file as the place to describe your actions according to
</TaskDescription>
]]
end,
- --- @param prompt string
--- @param action string
- --- @param name? string defaults to DIRECTIONS
--- @return string
- prompt = function(prompt, action, name)
- name = name or "Prompt"
- return string.format(
- [[
-<Context>
-%s
-</Context>
-<%s>
-%s
-</%s>
-]],
- action,
- name,
- prompt,
- name
- )
+ prompt = function(action)
+ return string.format([[%s]], action)
end,
visual_selection = function(range)
- return string.format(
- [[
-<SELECTION_CONTENT>
-%s
-</SELECTION_CONTENT>
-]],
- range:to_text()
- )
+ return string.format([[%s]], range:to_text())
end,
}