copilot-emacs / copilot.el

An unofficial Copilot plugin for Emacs.
MIT License
1.71k stars 122 forks source link

Auto balance s expressions #256

Closed stevemolitor closed 4 months ago

stevemolitor commented 4 months ago

Great package thanks.

In lisp modes sometimes parentheses will become unbalanced after completion. In modes like lispy-mode it can be a pain to get things correct again.

It’d be cool if copilot-mode could ensure that s-expressions do not get messed up after completing. Often copilot will add an extra closing paren, not seeing the closing paren on the next line for example.

I’m not quite sure how to go about this however.

stevemolitor commented 4 months ago

This looks like a dup of #27.

stevemolitor commented 4 months ago

Not sure if I've just gotten better at using copilot or if a recent upgrade of copilot.el has fixed this, but I'm not hitting this issue now. It usually happened when I completed by line. Completing either by word (gives me control) or the complete expression seems to work fine.

Closing.