Exafunction / codeium.nvim

A native neovim extension for Codeium
MIT License
738 stars 54 forks source link

debian + nvim + lazy + codeium = don't work visible suggestion #207

Open PerynFr opened 2 months ago

PerynFr commented 2 months ago

I'm add to init.lua :

  -- codeium
  {
    "Exafunction/codeium.nvim",
    dependencies = {
        "nvim-lua/plenary.nvim",
        "hrsh7th/nvim-cmp",
    },
    config = function()
        require("codeium").setup({
          enable_chat = true
        })
    end
  },

In this case, authorization was successful and the chat opens using the command > :Codeium Chat

aliaksandr-trush commented 2 months ago

https://github.com/Exafunction/codeium.nvim?tab=readme-ov-file#nvim-cmp

PerynFr commented 2 months ago

I deleted all other plugins, leaving only this one, but that didn’t help either, most likely it was all tested only on Mac

FadeDreams commented 1 month ago

I am experiencing the same issue where Codeium has stopped working recently. My configuration is as follows:

return {
  {
    "Exafunction/codeium.nvim",
    dependencies = {
      "nvim-lua/plenary.nvim",
      "hrsh7th/nvim-cmp",
    },
    config = function()
      require("codeium").setup({})
    end,
  },
  {
    "hrsh7th/nvim-cmp",
    dependencies = { "hrsh7th/cmp-emoji" },
    ---@param opts cmp.ConfigSchema
    opts = function(_, opts)
      table.insert(opts.sources, { name = "codeium" })
    end,
  },
}
SoaresAlisson commented 1 month ago

I was facing a similar problem, using manjaro + nvim + lazy + codeium. I recently migrated to lazyvim, and codeium worked pretty straightforward in nvim with init.vim, but not with Lazyvim. So, I followed the instructions of @aliaksandr-trush. I added codeium to my init.lua and now it looks like:

local cmp = require("cmp")
sources =
  cmp.config.sources({ { name = path }, { name = "snippets" }, { name = "cmp_r" }, { name = "codeium" } }), cmp.setup({
-- more code 

The codeium suggestions in lazyvim pop ups differently than in nvim with plug. Now appears a window of many codeium options, sometimes together with code snippets.

Thank you, @aliaksandr-trush !