Skip to content

A question. Does copilot.lua expose the project or open tabs to copilot? #171

Answered by zbirenbaum
moonlitknight asked this question in Q&A
Discussion options

You must be logged in to vote

My instinct and anecdotal experience supports the idea that requesting a completion from a buffer forwards it's content into copilot's scope. Opening a new buffer is enough to attach the client to it and should be sufficient.

To do this without opening a buffer requires workspace support, which I'm not certain copilot has.

You would have to ask this in the copilot discussion or try and format + read the packed code inside the lsp server js file to figure this out since copilot.vim doesn't do any special handling for it that I'm aware of.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by MunifTanjim
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #170 on May 20, 2023 05:18.