Commit graph

4 commits

Author SHA1 Message Date
cf6ddeffab Rename faces to reasemble non-internal names
Added provides to allow loading using use-package.
2023-05-08 16:39:06 +02:00
71bff98bd4 Fixed overlay when inserting fast enough so backend can't keep up
Overlay was updated temporarily with a wrong text on insert command,
so when the suggestion backend didn't keep up the suggestion was
wrong.

Refactored some code to have less repetition when setting overlay
properties.
2023-05-07 19:48:45 +02:00
446f88ff78 Fixed error when no further candidate was found
When corfu--candidate was ended up as nil, the overlay still held
previous value but was not updated as the error was raised in
the update function.

Additionally when the backend is not keeping up we use
the previous candidate to update what the user see using
all of the information we had (i.e. prefix and the candidate),
so we borrow a character from one and append/prepend to the
other when necessary. This gives a little better experience
when using slow backend such as lsp.
2023-05-07 17:06:36 +02:00
cfd74e2f6b Initial commit of Corfu candidate overlay
The minor mode uses underlying corfu completion data to show
the first candidate inline while typing.
2023-04-06 22:22:44 +02:00