Exafunction / codeium.vim

Free, ultrafast Copilot alternative for Vim and Neovim
https://codeium.com
MIT License
3.72k stars 127 forks source link

Bug: Default complete keybind is broken #20

Closed domWalters closed 1 year ago

domWalters commented 1 year ago

On pressing alt-\ neovim complains with:

E107: Missing parentheses: codeium#Complete

I believe this is because of line 43 of https://github.com/Exafunction/codeium.vim/blob/main/plugin/codeium.vim

There should be parentheses before the carriage return.

However, even after I added this, the keybind now just silently does nothing for me.

Other keybinds defined here (alt-], alt-[, and ctrl-]) all work fine.

Codeium commit: bfc129798d7c85b106b5290e74577b311e9196d9 Neovim Version: v0.8.2

domWalters commented 1 year ago

I think I misinterpreted what codeium#Complete was doing (I thought it was doing the job of codeium#Accept).

After adding the parentheses, it does work properly.

pqn commented 1 year ago

Thanks for the report! I've added the parentheses and merged the change.