remove copilot and use codeium

Signed-off-by: d0zingcat <leewtang@gmail.com>
This commit is contained in:
d0zingcat
2024-06-27 18:56:53 +08:00
parent f5773dcf5a
commit bcd04634f9
3 changed files with 14 additions and 24 deletions

View File

@@ -0,0 +1,13 @@
return {
'Exafunction/codeium.vim',
event = 'BufEnter',
config = function()
-- Change '<C-g>' here to any keycode you like.
vim.keymap.set('i', '<C-e>', function() return vim.fn['codeium#Accept']() end, { expr = true, silent = true })
vim.keymap.set('i', '<c-j>', function() return vim.fn['codeium#CycleCompletions'](1) end,
{ expr = true, silent = true })
vim.keymap.set('i', '<c-k>', function() return vim.fn['codeium#CycleCompletions'](-1) end,
{ expr = true, silent = true })
vim.keymap.set('i', '<c-x>', function() return vim.fn['codeium#Clear']() end, { expr = true, silent = true })
end
}

View File

@@ -1,24 +0,0 @@
-- return {
-- 'zbirenbaum/copilot.lua',
-- cmd = 'Copilot',
-- event = 'InsertEnter',
-- opts = {
-- -- panel = {
-- -- auto_refresh = true,
-- -- },
-- filetypes = {
-- ['*'] = true,
-- },
-- suggestion = {
-- auto_trigger = true,
-- keymap = {
-- accept = '<C-e>',
-- next = '<C-j>',
-- prev = '<C-k>',
-- }
-- }
-- }
-- }
return {
}