mirror of
https://github.com/Hydroxycarbamide/astrovim_user.git
synced 2025-05-04 20:29:08 -04:00
Update codeium nvim
This commit is contained in:
parent
3bc203a1f1
commit
0f119de936
3 changed files with 27 additions and 2 deletions
17
lua/plugins/cmp.lua
Normal file
17
lua/plugins/cmp.lua
Normal file
|
@ -0,0 +1,17 @@
|
|||
return { -- override nvim-cmp plugin
|
||||
"hrsh7th/nvim-cmp",
|
||||
-- override the options table that is used in the `require("cmp").setup()` call
|
||||
opts = function(_, opts)
|
||||
-- opts parameter is the default options table
|
||||
-- the function is lazy loaded so cmp is able to be required
|
||||
local cmp = require("cmp")
|
||||
-- modify the sources part of the options table
|
||||
opts.sources = cmp.config.sources({
|
||||
{ name = "nvim_lsp", priority = 1000 },
|
||||
{ name = "luasnip", priority = 750 },
|
||||
{ name = "buffer", priority = 500 },
|
||||
{ name = "path", priority = 250 },
|
||||
{ name = "codeium", priority = 2000 }
|
||||
})
|
||||
end,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue