CopilotChat.nvim icon indicating copy to clipboard operation
CopilotChat.nvim copied to clipboard

Full-Context awareness in a Git repository or Folder

Open Hexdigest123 opened this issue 1 year ago • 3 comments

Hi, I wanted to ask if there's a plan for implementing full-context awareness in Git repositories or in general, projects opened in Neovim. Currently, I only find the option to choose between a single buffer or multiple buffers. If this is not currently possible, is it possible to customize the context for Copilot?

Hexdigest123 avatar Jun 12 '24 17:06 Hexdigest123

I would also love this! 🙌

jondkinney avatar Jul 19 '24 20:07 jondkinney

FYI - You might want to look to this discussion https://discord.com/channels/1200633211236122665/1209115196702859294/1261373682542968842

TLDR: not yet.

jellydn avatar Jul 19 '24 23:07 jellydn

I dont event get my whole project/dir (or rather, not even "all open buffers" as documented) as context when using @buffers...only 2 or 3 of my open buffers max. Is this the norm, or am I doing something wrong? How much context do you guys get? It wouldn't be a big deal if context was limited, but 2-3 random buffers is nothing.

tmillr avatar Jul 27 '24 02:07 tmillr

https://github.com/CopilotC-Nvim/CopilotChat.nvim/pull/495

For now this was added, that should help AI to at least figure out structure of the project

deathbeam avatar Nov 16 '24 20:11 deathbeam

I dont event get my whole project/dir (or rather, not even "all open buffers" as documented) as context when using @buffers...only 2 or 3 of my open buffers max. Is this the norm, or am I doing something wrong? How much context do you guys get? It wouldn't be a big deal if context was limited, but 2-3 random buffers is nothing.

Also very late reply, but we use github embeddings queries to determine if something should be included in context or not. and this is based on your prompt query so sometimes it can just ditch less relevant files. Also it depends on maximum token limit, but for example claude can handle a lot of data.

deathbeam avatar Nov 16 '24 21:11 deathbeam

Ok this is now mostly implemented with files:full context, feel free to try :) There is no caching atm so it only works well for small to mid sized repositories, but its usable. For rest see #628

deathbeam avatar Nov 28 '24 00:11 deathbeam