mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 16:39:04 +02:00
add: codeium config
This commit is contained in:
parent
8677303d6d
commit
a0c81f7286
10 changed files with 308 additions and 234 deletions
27
lua/plugins/codeiumnvim.lua
Normal file
27
lua/plugins/codeiumnvim.lua
Normal file
|
@ -0,0 +1,27 @@
|
|||
if vim.g.pcode_codeium_nvim then
|
||||
return {
|
||||
-- codeium cmp source
|
||||
{
|
||||
"nvim-cmp",
|
||||
dependencies = {
|
||||
-- codeium
|
||||
{
|
||||
"Exafunction/codeium.nvim",
|
||||
cmd = "Codeium",
|
||||
build = ":Codeium Auth",
|
||||
opts = {},
|
||||
},
|
||||
},
|
||||
--@param opts cmp.ConfigSchema
|
||||
opts = function(_, opts)
|
||||
table.insert(opts.sources, 1, {
|
||||
name = "codeium",
|
||||
group_index = 1,
|
||||
priority = 100,
|
||||
})
|
||||
end,
|
||||
},
|
||||
}
|
||||
else
|
||||
return {}
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue