You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When copilot.lua offers a suggestion where the cursor is between a pair, it hides the closing pair as if it's not there at all offering the suggestion over the existing closing pair.
Here I'm using mini.pairs, after typing csi.Param(, it completes the parenthesis and adds a ) automatically. Now, the cursor is at if csi.Params(|) and Copilot offers 0) != 0 { as a suggestion. The issue here is that copilot.lua ignores the existence of the closing parenthesis as noted by the MatchParen highlight, and offers the suggestion over the closing pair.
Instead, I think copilot.lua should split the suggestion into two parts, first the 0, and second the != 0 { inserting placeholders for the suggestions similar to how VSCode handles this
The text was updated successfully, but these errors were encountered:
When copilot.lua offers a suggestion where the cursor is between a pair, it hides the closing pair as if it's not there at all offering the suggestion over the existing closing pair.
Here I'm using mini.pairs, after typing
csi.Param(
, it completes the parenthesis and adds a)
automatically. Now, the cursor is atif csi.Params(|)
and Copilot offers0) != 0 {
as a suggestion. The issue here is that copilot.lua ignores the existence of the closing parenthesis as noted by the MatchParen highlight, and offers the suggestion over the closing pair.Instead, I think copilot.lua should split the suggestion into two parts, first the
0
, and second the!= 0 {
inserting placeholders for the suggestions similar to how VSCode handles thisThe text was updated successfully, but these errors were encountered: