mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 08:35:48 +02:00
enc: upgrade v2 to v2.5
This commit is contained in:
parent
68ea712b98
commit
609234c086
443 changed files with 5224 additions and 90746 deletions
33
lua/pcode/plugins/extras/codeium.lua
Normal file
33
lua/pcode/plugins/extras/codeium.lua
Normal file
|
@ -0,0 +1,33 @@
|
|||
return {
|
||||
"exafunction/codeium.vim",
|
||||
enabled = true,
|
||||
-- for fix notwork new version
|
||||
-- https://github.com/exafunction/codeium.vim/issues/376#issuecomment-2159643405
|
||||
-- version = "1.8.37",
|
||||
-- event = "bufwinenter",
|
||||
-- event = "bufenter",
|
||||
-- event = "insertenter",
|
||||
event = { "VeryLazy", "bufreadpre", "bufnewfile", "bufread" },
|
||||
build = ":Codeium Auth",
|
||||
cmd = { "CodeiumChat" },
|
||||
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,
|
||||
keys = {
|
||||
{ "<leader>c", ":CodeiumChat<cr>", desc = " codeium chat", mode = "n" },
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue