Exafunction / codeium.nvim

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

not work on MacOS, unavailable source names #130

Closed liaohui5 closed 4 months ago

liaohui5 commented 6 months ago

hello, after :Codeium Auth, this plugin still doesn't work on macOS

OS: MacOS sonoma 14.1.1 CPU: intel x86 nvim: NVIM v0.9.4 Build type: Release LuaJIT 2.1.1700008891

When I execute :CmpStatus, output like this image

image

milanglacier commented 6 months ago

have you called require('codeium').setup{}?

liaohui5 commented 6 months ago

have you called require('codeium').setup{}?

of course

jakeschurch commented 6 months ago

can confirm same behavior

milanglacier commented 6 months ago

I guess this is because codeium is not loaded yet. If you are using lazy as your package manager, add a line event="InsertEnter" to make sure lazy is loading codeium at appropriate time and see if it helps.

liaohui5 commented 6 months ago

I guess this is because codeium is not loaded yet. If you are using lazy as your package manager, add a line event="InsertEnter" to make sure lazy is loading codeium at appropriate time and see if it helps.

I used Lazy.nvim, plugin config like this:

  {
      "Exafunction/codeium.nvim",
      event = "InsertEnter",
      config = function()
          require("codeium").setup({})
      end,
  }

this plugin still doesn't work on macOS

ghost commented 6 months ago

Maybe add its dependencies? This is how I did it:

{
  "Exafunction/codeium.nvim",
  event = "InsertEnter",
  dependencies = {
    "hrsh7th/nvim-cmp",
    "nvim-lua/plenary.nvim",
  },
  config = true,
}
johnbunky commented 4 months ago

It still doesn't work, any Ideas?

consoleaf commented 4 months ago

I'd try BufRead or VeryLazy as the event. But if you run :Codeium and it doesn't say command not found, it should be available in cmp as well. Just make sure cmp setup is called before codeium setup

johnbunky commented 4 months ago

HI @consoleaf thank you for your explanations. I've added required changes to cmp and it works again!! Really appreciate.

feekApp commented 1 month ago

@johnbunky could you please share your changes. I've a similar issue.

johnbunky commented 1 month ago

@feekApp Sure, sorry for delay reply. You can find all my mac setup via the link https://github.com/johnbunky/nvimTermuxJavaIDE/tree/mac-version The changes are in lua/completion.lua and lua/plug_packer.lua files Happy coding)

feekApp commented 1 month ago

@johnbunky thnx for sharing!