Open sudipghimire533 opened 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
The issue is with above config I cannot even access :Codeium
command
-- 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,
},
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
?
I use lazy.nvim as package manager and i could not get this to work.
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