We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f678e9 commit 6c2ed2bCopy full SHA for 6c2ed2b
lua/opencode/api.lua
@@ -126,7 +126,9 @@ function M.quick_chat(message, range)
126
end
127
128
if not message or #message == 0 then
129
- vim.ui.input({ prompt = 'Quick Chat Message: ', win = { relative = 'cursor' } }, function(input)
+ local scope = range and ('[selection: ' .. range.start .. '-' .. range.stop .. ']')
130
+ or '[line: ' .. tostring(vim.api.nvim_win_get_cursor(0)[1]) .. ']'
131
+ vim.ui.input({ prompt = 'Quick Chat Message: ' .. scope, win = { relative = 'cursor' } }, function(input)
132
if input and input ~= '' then
133
local prompt, ctx = util.parse_quick_context_args(input)
134
quick_chat.quick_chat(prompt, { context_config = ctx }, range)
0 commit comments