Closed LeonardoMor closed 1 week ago
Amazing! Can you add default keybindings for these as well?
Sure :)
I got error for this
in insert mode if i press next arrow key it will enter "-1" then give error msg
This is my lazy vim plugin config to codium.
vim.keymap.set("i", "<C-z>", 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#CycleCompletio-1ns"](-1)
end, { expr = true, silent = true })
vim.keymap.set("i", "<c-x>", function()
return vim.fn["codeium#Clear"]()
end, { expr = true, silent = true })
end--11,
}, }
os: Manjaro 6.6 (Arch) neovim : v11
The process of inserting suggestions is always roughly the same, so abstracted that into the
s:CompletionInserter
function.With that, I refactored
codeium#Accept
(maintaining the same functionality) and introducedcodeium#AcceptNextWord
andcodeium#AcceptNextLine
. Fixes #27