From 0f119de936168cd9d54ebd742093120d344f20e2 Mon Sep 17 00:00:00 2001 From: Hydroxycarbamide Date: Sun, 6 Oct 2024 12:49:05 +0200 Subject: [PATCH] Update codeium nvim --- lazy-lock.json | 2 +- lua/plugins/cmp.lua | 17 +++++++++++++++++ lua/plugins/user.lua | 10 +++++++++- 3 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 lua/plugins/cmp.lua diff --git a/lazy-lock.json b/lazy-lock.json index df3feef..ce35d35 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -15,7 +15,7 @@ "cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" }, "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" }, "cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" }, - "codeium.vim": { "branch": "main", "commit": "9ff8d323ff56ff513457f3f7f4305523408d538e" }, + "codeium.nvim": { "branch": "main", "commit": "ed65f0a5262c746b2d69a7ae67af7c1da89f94ab" }, "dressing.nvim": { "branch": "master", "commit": "1b7921eecc65af1baf8ac1dc06f0794934cbcfb2" }, "friendly-snippets": { "branch": "main", "commit": "00ba9dd3df89509f95437b8d595553707c46d5ea" }, "git-blame.nvim": { "branch": "master", "commit": "2883a7460f611c2705b23f12d58d398d5ce6ec00" }, diff --git a/lua/plugins/cmp.lua b/lua/plugins/cmp.lua new file mode 100644 index 0000000..1ad2ed1 --- /dev/null +++ b/lua/plugins/cmp.lua @@ -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, +} diff --git a/lua/plugins/user.lua b/lua/plugins/user.lua index f4f7426..32d720f 100644 --- a/lua/plugins/user.lua +++ b/lua/plugins/user.lua @@ -83,8 +83,16 @@ return { }, { - "Exafunction/codeium.vim", + "Exafunction/codeium.nvim", + dependencies = { + "nvim-lua/plenary.nvim", + "hrsh7th/nvim-cmp", + }, event = "BufEnter", + config = function() + require("codeium").setup({ + }) + end }, { "Wansmer/symbol-usage.nvim",