From 418843bfc93fdf81783f64bf85cfdb84493855ac Mon Sep 17 00:00:00 2001 From: taynpg Date: Mon, 19 Jan 2026 10:24:34 +0800 Subject: [PATCH] =?UTF-8?q?Codeium=E9=85=8D=E7=BD=AE=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/config/options.lua | 2 +- lua/plugins/blink.lua | 38 +++++++++++++++++++------------------- lua/plugins/codeium.lua | 31 +++++++++++++++++-------------- 3 files changed, 37 insertions(+), 34 deletions(-) diff --git a/lua/config/options.lua b/lua/config/options.lua index 17bd9c5..64a7c4d 100644 --- a/lua/config/options.lua +++ b/lua/config/options.lua @@ -77,4 +77,4 @@ vim.o.showmode = false -- vim.o.background = "light" -- vim.o.background = "dark" vim.g.codeium_enabled = true -vim.g.ai_cmp = true +vim.g.ai_cmp = false diff --git a/lua/plugins/blink.lua b/lua/plugins/blink.lua index 2aed698..81f5255 100644 --- a/lua/plugins/blink.lua +++ b/lua/plugins/blink.lua @@ -1,23 +1,23 @@ return { - { - "saghen/blink.cmp", - opts = { - keymap = { - preset = "enter", - [""] = { "fallback" }, - [""] = { - function(cmp) - if cmp.snippet_active() then - return cmp.accept() - else - return cmp.select_and_accept() - end - end, - "snippet_forward", - "fallback", + { + "saghen/blink.cmp", + opts = { + keymap = { + preset = "enter", + [""] = { "fallback" }, + [""] = { + function(cmp) + if cmp.snippet_active() then + return cmp.accept() + else + return cmp.select_and_accept() + end + end, + "snippet_forward", + "fallback", + }, + [""] = { "snippet_backward", "fallback" }, + }, }, - [""] = { "snippet_backward", "fallback" }, - }, }, - }, } diff --git a/lua/plugins/codeium.lua b/lua/plugins/codeium.lua index b97e914..c3a3632 100644 --- a/lua/plugins/codeium.lua +++ b/lua/plugins/codeium.lua @@ -1,17 +1,20 @@ return { - "Exafunction/codeium.nvim", - cmd = "Codeium", - event = "InsertEnter", - build = ":Codeium Auth", - opts = { - enable_cmp_source = vim.g.ai_cmp, - virtual_text = { - enabled = not vim.g.ai_cmp, - key_bindings = { - accept = false, -- handled by nvim-cmp / blink.cmp - next = "", - prev = "", - }, + "Exafunction/codeium.nvim", + cmd = "Codeium", + event = "InsertEnter", + build = ":Codeium Auth", + opts = { + enable_cmp_source = vim.g.ai_cmp, + virtual_text = { + enabled = not vim.g.ai_cmp, + virtual_text_priority = 65535, + map_keys = true, + key_bindings = { + -- accept = false, -- handled by nvim-cmp / blink.cmp + accept = "", + next = "", + prev = "", + }, + }, }, - }, }