Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sudipghimire533 opened this issue Aug 15, 2023 · 4 comments

Comments

@sudipghimire533
Copy link

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
Copy link
Contributor

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
Copy link
Author

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

@ngtuonghy
Copy link

ngtuonghy commented Aug 16, 2023

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
Copy link

catgoose commented Aug 28, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants