copilot.lua
copilot.lua copied to clipboard
Question: Suggestion based on content of current buffer only?
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.
Thank you! Jamil
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?