Exafunction / codeium.nvim

A native neovim extension for Codeium
MIT License
644 stars 50 forks source link

nvim: Codeium not auto completing #149

Closed fervidnerd closed 4 months ago

fervidnerd commented 4 months ago

I do not get auto-suggestions when the cursor is idling. Moreover, if I try to 'accept' an auto-suggestion with the keybinding of <C-g> (even if there's no suggestion provided), I get:

E5108: Error executing lua: Vim:E117: Unknown function: codeium#Accept         
stack traceback:
        [C]: at 0x55641a235c57

However, I do get suggestions within cmp, so Codeium is definitely up and running.

Codeium partial logs are as follows:

DEBUG Mon 19 Feb 2024 10:08:07 EET] /home/harry/.local/share/nvim/lazy/codeium.nvim/lua/codeium/api.lua:208: 15511: I0219 10:08:07.170016 15522 server.go:634] Successfully created completion provider
[DEBUG Mon 19 Feb 2024 10:08:07 EET] /home/harry/.local/share/nvim/lazy/codeium.nvim/lua/codeium/api.lua:208: 15511: I0219 10:08:07.170096 15522 server.go:672] Child process attempting to acquire lock file /tmp/nvim.harry/xBDSHa/0codeium/manager/locks/child_lock_1708330085730048555_5457184788897950153
[DEBUG Mon 19 Feb 2024 10:08:07 EET] /home/harry/.local/share/nvim/lazy/codeium.nvim/lua/codeium/api.lua:208: 15511: I0219 10:08:07.170170 15522 server.go:682] Child process acquired lock file /tmp/nvim.harry/xBDSHa/0codeium/manager/locks/child_lock_1708330085730048555_5457184788897950153
[DEBUG Mon 19 Feb 2024 10:08:07 EET] /home/harry/.local/share/nvim/lazy/codeium.nvim/lua/codeium/api.lua:208: 15511: I0219 10:08:07.175861 15522 server.go:341] Language server will attempt to listen on host 127.0.0.1
[DEBUG Mon 19 Feb 2024 10:08:07 EET] /home/harry/.local/share/nvim/lazy/codeium.nvim/lua/codeium/api.lua:208: 15511: I0219 10:08:07.176058 15522 server.go:385] Language server listening on random port at 39609
[DEBUG Mon 19 Feb 2024 10:08:07 EET] /home/harry/.local/share/nvim/lazy/codeium.nvim/lua/codeium/api.lua:208: 15511: I0219 10:08:07.238591 15511 main.go:281] Language server manager found random server port 39609
[DEBUG Mon 19 Feb 2024 10:08:07 EET] /home/harry/.local/share/nvim/lazy/codeium.nvim/lua/codeium/api.lua:208: 15511: I0219 10:08:07.238683 15511 main.go:282] Language server manager found random lsp port 42101
[DEBUG Mon 19 Feb 2024 10:08:07 EET] /home/harry/.local/share/nvim/lazy/codeium.nvim/lua/codeium/api.lua:208: 15511: I0219 10:08:07.238728 15511 main.go:289] Language server manager attempting to connect to language server at 127.0.0.1:39609
[DEBUG Mon 19 Feb 2024 10:08:07 EET] /home/harry/.local/share/nvim/lazy/codeium.nvim/lua/codeium/api.lua:208: 15511: I0219 10:08:07.265358 15511 main.go:160] Fixing language server port at 39609
[DEBUG Mon 19 Feb 2024 10:08:07 EET] /home/harry/.local/share/nvim/lazy/codeium.nvim/lua/codeium/api.lua:208: 15511: I0219 10:08:07.265383 15511 main.go:340] Language server manager successfully connected to new language server at 127.0.0.1:39609
[TRACE Mon 19 Feb 2024 10:09:31 EET] /home/harry/.local/share/nvim/lazy/codeium.nvim/lua/codeium/api.lua:343: completion:  {

Any suggestions would be appreciated.

consoleaf commented 4 months ago

Seems to me like you're using a keybind setup meant for codeium.vim while using codeium.nvim

consoleaf commented 4 months ago

To elaborate a bit: codeium.nvim does not currently provide neither ghost text nor any keybinds, everything is done through nvim-cmp.

If you want ghost text, please try codeium.vim

fervidnerd commented 4 months ago

Ah i see. I'll give that a shot, thanks!

fervidnerd commented 4 months ago

Yup that did it. I didn't realize they offered different functionality. I thought one was for vim and the other was for neovim. In any case, everything works as expected now, thanks.