Skip to content

Commit eac44cd

Browse files
chore(build): auto-generate docs
1 parent 336048b commit eac44cd

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

docs/extras/ai/copilot-chat.md

+15-6
Original file line numberDiff line numberDiff line change
@@ -82,16 +82,25 @@ end
8282
{
8383
"<leader>aq",
8484
function()
85-
local input = vim.fn.input("Quick Chat: ")
86-
if input ~= "" then
87-
require("CopilotChat").ask(input)
88-
end
85+
vim.ui.input({
86+
prompt = "Quick Chat: ",
87+
}, function(input)
88+
if input ~= "" then
89+
require("CopilotChat").ask(input)
90+
end
91+
end)
8992
end,
9093
desc = "Quick Chat (CopilotChat)",
9194
mode = { "n", "v" },
9295
},
93-
-- Show prompts actions with telescope
94-
{ "<leader>ap", M.pick("prompt"), desc = "Prompt Actions (CopilotChat)", mode = { "n", "v" } },
96+
{
97+
"<leader>ap",
98+
function()
99+
require("CopilotChat").select_prompt()
100+
end,
101+
desc = "Prompt Actions (CopilotChat)",
102+
mode = { "n", "v" },
103+
},
95104
},
96105
config = function(_, opts)
97106
local chat = require("CopilotChat")

0 commit comments

Comments
 (0)