Exafunction / codeium.vim

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

Wrong Language Server #369

Open guilhermeyo opened 3 weeks ago

guilhermeyo commented 3 weeks ago

Hello, I had an M1, and after putting in my nvim plugins:

{
    'Exafunction/codeium.vim',
    config = function ()
      -- Change '<C-g>' here to any keycode you like.
      vim.keymap.set('i', '<C-g>', function () return vim.fn['codeium#Accept']() end, { expr = true, silent = true })
      vim.keymap.set('i', '<c-;>', function() return vim.fn['codeium#CycleCompletions'](1) end, { expr = true, silent = true })
      vim.keymap.set('i', '<c-,>', function() return vim.fn['codeium#CycleCompletions'](-1) end, { expr = true, silent = true })
      vim.keymap.set('i', '<c-x>', function() return vim.fn['codeium#Clear']() end, { expr = true, silent = true })
    end
  },

Intall the plugin:

My nvim starts with this error:

Error detected while processing function codeium#server#Start[58]..<SNR>49_ActuallyStart:
line   19:
E903: Process failed to start: Unknown system error -8: "/Users/guilherme/.codeium/bin/c9ee08628270937c0e7c7740dd6931363217942f/language_server_windows_x64.exe"

Why language_server_windows_x64.exe? How do I set it to use language_server_macos_arm?

nvim config

NVIM v0.9.5
Build type: Release
LuaJIT 2.1.1713773202

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/opt/homebrew/Cellar/neovim/0.9.5/share/nvim"

Macbook M1 OS Sonoma

Thanks, Guilherme

pqn commented 2 weeks ago

What do uname and uname -m get you?

https://github.com/Exafunction/codeium.vim/blob/289eb724e5d6fab2263e94a1ad6e54afebefafb2/doc/codeium.txt#L97-L110

Barmaley0 commented 2 weeks ago

Have you solved this problem?