-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Labels
enhancementNew feature or requestNew feature or request
Description
i think it makes sense to try to do a few low hanging fruit to augment the completer with better project context.
Currently we can easily tweak how much contextual code nearby the cursor is provided to LLM context
Let's talk about adding, and coming up with ways to enforce token size limits on, additional context:
- a project skeleton similar to aider's repository map so it has a few clues about project structure
- if LSP is enabled in buffer, getting useful info out of this somehow. For example (just an idea), getting the signature information of all functions that are referenced in the contextual code from the current buffer that is being used.
- working out 'related' files somehow to also include in context. Do we know what heuristics copilot uses? It's probably simple enough to copy.
Actually the sky's the limit and with neovim we should have both LSP and tree-sitter at our disposal which is pretty powerful.
I've been planning to make a tool that would hierarchically summarize code based on syntax tree structure to explore automated code understanding and it would be really suitable for sharing that data with LLM buffer completion.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request