copilot.lua icon indicating copy to clipboard operation
copilot.lua copied to clipboard

Question: Suggestion based on content of current buffer only?

Open jamilraichouni opened this issue 5 months ago • 1 comments

Hi!

Is there a way to get suggestions based on the content of the current buffer only? This is of interest for filetype gitcommit when writing a commit message as one can easily see on the picture below.

At the moment the suggestions I get mix up stuff from all open buffers which leads to not useful suggestions.

Image

Thank you! Jamil

jamilraichouni avatar Jul 20 '25 07:07 jamilraichouni

Hmm, the LSP pretty much decides what it will use for context. Copilot.lua tells it about the files that are opened, folders in which we are working and cursor position but that's pretty much it. This might be a question to ask on the official lsp repo?

AntoineGS avatar Jul 28 '25 12:07 AntoineGS