Skip to content

Commit c73b7be

Browse files
committed
feat(quick_chat): cheat for position of window for snacks
1 parent 13ade85 commit c73b7be

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lua/opencode/api.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,8 @@ function M.quick_chat(message, range)
125125
message = table.concat(message, ' ')
126126
end
127127

128-
-- If no message, prompt for input (range is captured above)
129128
if not message or #message == 0 then
130-
vim.ui.input({ prompt = 'Quick Chat Message: ' }, function(input)
129+
vim.ui.input({ prompt = 'Quick Chat Message: ', win = { relative = 'cursor' } }, function(input)
131130
local prompt, ctx = util.parse_quick_context_args(input)
132131
if input and input ~= '' then
133132
quick_chat.quick_chat(prompt, { context_config = ctx }, range)

0 commit comments

Comments
 (0)