Codeium配置。

This commit is contained in:
2026-01-19 10:24:34 +08:00
parent a92e95f655
commit 418843bfc9
3 changed files with 37 additions and 34 deletions

View File

@@ -1,23 +1,23 @@
return {
{
"saghen/blink.cmp",
opts = {
keymap = {
preset = "enter",
["<CR>"] = { "fallback" },
["<Tab>"] = {
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",
["<CR>"] = { "fallback" },
["<Tab>"] = {
function(cmp)
if cmp.snippet_active() then
return cmp.accept()
else
return cmp.select_and_accept()
end
end,
"snippet_forward",
"fallback",
},
["<S-Tab>"] = { "snippet_backward", "fallback" },
},
},
["<S-Tab>"] = { "snippet_backward", "fallback" },
},
},
},
}

View File

@@ -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 = "<M-]>",
prev = "<M-[>",
},
"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 = "<Tab>",
next = "<M-]>",
prev = "<M-[>",
},
},
},
},
}