Skip to content

Commit f091f61

Browse files
committed
docs: Add example for .response() also to API section
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
1 parent c9c0ba0 commit f091f61

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ chat.ask("Show me something interesting", {
167167
-- Get all available prompts (can be used for integrations like fzf/telescope)
168168
local prompts = chat.prompts()
169169

170+
-- Get last copilot response (also can be used for integrations and custom keymaps)
171+
local response = chat.response()
172+
170173
-- Pick a prompt using vim.ui.select
171174
local actions = require("CopilotChat.actions")
172175

0 commit comments

Comments
 (0)