mirror of
https://github.com/d0zingcat/dotfiles.git
synced 2026-05-14 15:09:44 +00:00
remove copilot and use codeium
Signed-off-by: d0zingcat <leewtang@gmail.com>
This commit is contained in:
13
nvim/lua/plugins/codeium.lua
Normal file
13
nvim/lua/plugins/codeium.lua
Normal 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
|
||||
}
|
||||
@@ -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 {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user