You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I would like to know how I can configure code completion to generate not the entire suggested solution at once, but word by word, like it’s implemented in Copilot. For example, if the suggested solution is throw new Error("This page does not exist"), after pressing Ctrl-W, I want only one word (e.g., throw) to be inserted at a time, and then after each subsequent press of Ctrl-W, the next word in the suggestion is inserted. How can this be implemented?
The text was updated successfully, but these errors were encountered:
I guess you need to take a look into nvim-cmp plugin configuration.
Codeium.nvim just providing completion to it, but nvim-cmp plugin decided what and how it should be inserted into buffer.
@Informativus
This functionality exists in the vim plugin , which works perfectly fine in neovim too.
Honestly I don't know why both versions are maintained or why the vim alternative is so much more complete.
For example, this is a simplified excerpt from my config, which maps the word-by-word completion to c-w:
local M = {
"Exafunction/codeium.vim",
branch = "main",
dependencies = {
"nvim-lua/plenary.nvim",
},
}
M.config = function()
vim.keymap.set("i", "<C-w>", function()
return vim.fn["codeium#AcceptNextWord"]()
end, { expr = true, silent = true })
end
return M
Oh, thanks, but in this case, as i undestand it, the hint disappears for a while? In copilot this implemented easier, there the hint does not disappear
Hello, I would like to know how I can configure code completion to generate not the entire suggested solution at once, but word by word, like it’s implemented in Copilot. For example, if the suggested solution is throw new Error("This page does not exist"), after pressing Ctrl-W, I want only one word (e.g., throw) to be inserted at a time, and then after each subsequent press of Ctrl-W, the next word in the suggestion is inserted. How can this be implemented?
The text was updated successfully, but these errors were encountered: