Exafunction / codeium.el

Free, ultrafast Copilot alternative for Emacs
https://www.codeium.com
MIT License
412 stars 13 forks source link

How to get the overlay in the README with corfu and cape ? #98

Open maikol-solis opened 2 months ago

maikol-solis commented 2 months ago

In the README, it is shown that the autocompletion has a nice overlay. I wondered how you achieve this behavior, and if it would be possible to do it with Corfu and Cape.

Best.

Emacs Demo - Final

fortenforge commented 2 months ago

The README has an example of how you can do it for company-mode. Not sure how to do it in corfu

polhuang commented 2 months ago

Corfu doesn't have a native overlay feature like company-mode does. You'd have to tweak it yourself or use something like this.

NightMachinery commented 2 months ago

Can this be exposed not as a capf? This will hijack the normal capfs, and its multiline single candidate nature is very different from capfs. Sth like copilot.el is ideal.