mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 16:39:04 +02:00
add: miniaimate
This commit is contained in:
parent
e50fb19878
commit
72ff763f68
15 changed files with 897 additions and 607 deletions
29
lua/plugins/codeioum.lua
Normal file
29
lua/plugins/codeioum.lua
Normal file
|
@ -0,0 +1,29 @@
|
|||
local M = {}
|
||||
if vim.g.pcode_codeium then
|
||||
M.codeium = {
|
||||
"Exafunction/codeium.vim",
|
||||
enabled = true,
|
||||
-- event = "BufEnter",
|
||||
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