add:codeium config

This commit is contained in:
asep.komarudin 2024-06-05 14:17:54 +07:00
parent a0c81f7286
commit da416417d8
2 changed files with 7 additions and 1 deletions

View file

@ -1,30 +0,0 @@
local M = {}
if vim.g.pcode_codeium then
M.codeium = {
"Exafunction/codeium.vim",
enabled = true,
version = "1.8.37",
event = "BufWinEnter",
-- event = "InsertEnter",
config = function()
vim.g.codeium_disable_bindings = 1
-- Change '<C-g>' here to any keycode you like.
vim.keymap.set("i", "<C-g>", function()
return vim.fn["codeium#Accept"]()
end, { expr = true, silent = true })
vim.keymap.set("i", "<c-;>", function()
return vim.fn["codeium#CycleCompletions"](1)
end, { expr = true, silent = true })
vim.keymap.set("i", "<c-,>", 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,
}
else
M.codeium = {}
end
return M.codeium