mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 16:39:04 +02:00
add:codeium config
This commit is contained in:
parent
a0c81f7286
commit
da416417d8
2 changed files with 7 additions and 1 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue