Exafunction / codeium.nvim

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

An example config on how to add these in with lazy package manager #81

Open sudipghimire533 opened 1 year ago

sudipghimire533 commented 1 year ago

I use lazy.nvim as package manager and i could not get this to work.

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

Is this config complete? Do I need to add original codeium or not. Any other setup required besides adding it to nvm-cmp sources. An example config or walkthrough would be great

brunolpsousa commented 1 year ago

You don't need the official plugin, it should work after you add codeium as a source in nvim-cmp, but a recent update in nvim-cmp broke Codeium (see #80).

A workaround is to lock nvim-cmp in a previous commit for now, like 6c84bc75c64f778e9f1dcb798ed41c7fcb93b639

sudipghimire533 commented 1 year ago

The issue is with above config I cannot even access :Codeium command

ngtuonghy commented 1 year ago

here is my active configuration


-- cmp
  {
    "hrsh7th/nvim-cmp",
    commit = "6c84bc75c64f778e9f1dcb798ed41c7fcb93b639", -- lock update (break codeium)
    event = "VeryLazy",
    dependencies = { "hrsh7th/cmp-cmdline", "hrsh7th/cmp-nvim-lsp-signature-help" },
    opts = overrides.cmp,
  },

--code codeium
{
    "jcdickinson/codeium.nvim",
    event = "VeryLazy",
    dependencies = {
      "nvim-lua/plenary.nvim",
      "hrsh7th/nvim-cmp",
    },
    config = function()
      require("codeium").setup {}
    end,
  },
catgoose commented 1 year ago

here is my active configuration

-- cmp
{
  "hrsh7th/nvim-cmp",
  commit = "6c84bc75c64f778e9f1dcb798ed41c7fcb93b639", -- lock update (break codeium)
  event = "VeryLazy",
  dependencies = { "hrsh7th/cmp-cmdline", "hrsh7th/cmp-nvim-lsp-signature-help" },
  opts = overrides.cmp,
},

--code codeium
{
  "jcdickinson/codeium.nvim",
  event = "VeryLazy",
  dependencies = {
    "nvim-lua/plenary.nvim",
    "hrsh7th/nvim-cmp",
  },
  config = function()
    require("codeium").setup {}
  end,
},

Any time you use

  config = function()
    require("codeium").setup {}
  end,

it's the same as

  config = true,

I'm new to using Codeium, but would a better event be InsertEnter?