v3.1.0 - Copilot Extension Agents, Sticky Prompts, Reworked Contexts #524
Replies: 1 comment
-
Prompt Model selectionModels can now be selected directly in prompt with Copilot Extension AgentsAgents are used to determine the AI agent used for the chat. You can list available agents with For more information about extension agents, see here Sticky PromptsYou can set sticky prompt in chat by prefixing the text with > #files
List all files in the workspace > @models Using Mistral-small
What is 1 + 11 Reworked ContextsContexts are used to determine the context of the chat.
You can define custom contexts very easily: {
contexts = {
birthday = {
input = function(callback)
vim.ui.select({ 'user', 'napoleon' }, {
prompt = 'Select birthday> ',
}, callback)
end,
resolve = function(input)
input = input or 'user'
local birthday = input
if input == 'user' then
birthday = birthday .. ' birthday is April 1, 1990'
elseif input == 'napoleon' then
birthday = birthday .. ' birthday is August 15, 1769'
end
return {
{
content = birthday,
filename = input .. '_birthday',
filetype = 'text',
}
}
end
}
}
} Improved diffsDiffs now support code excerpts on top of replacing whole selection when using /COPILOT_GENERATE. Improved autocompletionnvim-cmp autocompletion integration was removed in favour of custom simple autocomplete with tailored output specific to the plugin. This autocompletion works for everyone instead of relying on anything specific and can be disabled via Completion results are also improved and they now contain also context, model and agent descriptions and with new context there is also manual trigger for inputs (e.g #context:). Improved performanceEmbedding processing was reworked and embeddings are now cached when used based on quick hash algorithm. This means that talking about same buffer/file or multiple files should be a lot faster. |
Beta Was this translation helpful? Give feedback.
-
What's Changed
>
by @deathbeam in Add support for sticky prompt section with>
#503:
in them by @deathbeam in Properly parse context inputs with:
in them #513New Contributors
Full Changelog: v3.0.0...v3.1.0
This discussion was created from the release v3.1.0.
Beta Was this translation helpful? Give feedback.
All reactions