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

Compatibility issues with smartparens

Open jimeh opened this issue 1 year ago • 1 comments

copilot-mode doesn't play nice with smartparens-mode, specifically around {.

When the copilot overlay is visible and next character in the Copilot suggestion is ", manually typing a double quote allows smartparens to insert the matching end character.

However when the next character is {, typing that character seems to prevent smartparens from inserting the matching closing character.

Below is a screen recording of Copilot suggesting both " and {. After typing each character I use C+p to move the cursor up a line to clear the copilot overlay.

https://github.com/copilot-emacs/copilot.el/assets/39563/dcd4b78d-234c-4f27-9eb5-f1181d37f599

jimeh avatar May 26 '24 22:05 jimeh

You could try to make the function copilot--self-insert do nothing. This was previously used to prevent overlay flickering.

zerolfx avatar Jul 03 '24 08:07 zerolfx