-
Notifications
You must be signed in to change notification settings - Fork 119
Feature request: Inline virtual text for suggestions #328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Not having this is currently my top issue with using copilot. Having this would make the whole experience so much better |
I cannot seem to find a way to trigger a mid-line suggestion, whether I put |
@AntoineGS I messed around with it briefly, and I think setting |
Good find, it does work without |
I think I got it working properly, would you mind pulling the new code from the Edit: yeah I am really digging the behavior, thanks for the suggestion :P :P |
Neovim 0.10 has been out for a while now, with support for
virt_text_pos = "inline"
, i.e. virtual text which is visible in the middle of text, leaving the text in the buffer at its position visible instead of replacing it, in the style of LSP inlay hints.It would be nice if copilot.lua used inline virtual text to display suggestions, as currently suggestions in the middle of a line obscure what remains on the line. This very often causes confusion around things like auto-pairs, e.g. in this example:
If I dismiss the suggestion, I can see that the opening bracket has been auto-paired, but I have no way to tell while the Copilot suggestion is active.
And if I accept the suggestion, it appears as though the closing bracket was added by Copilot, even though it didn't appear in the suggestion.
This is all much more noticeable if there is more than one remaining character on the line, e.g. when replacing the first argument of multiple in a function call, the suggestion may cover up the existing values for the following arguments.
Notes
The text was updated successfully, but these errors were encountered: