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
I by chance just saw this in the docs.
Maybe it helps, although I don't see it set in your config, and the default is to insert, instead of replace.
*cmp.confirm* (option: cmp.ConfirmOption, callback: function)
Accepts the currently selected completion item.
If you didn't select any item and the option table contains `select = true`,
nvim-cmp will automatically select the first item.
You can control how the completion item is injected into
the file through the `behavior` option:
`behavior=cmp.ConfirmBehavior.Insert`: inserts the selected item and
moves adjacent text to the right (default).
`behavior=cmp.ConfirmBehavior.Replace`: replaces adjacent text with
the selected item.
>lua
cmp.setup {
mapping = {
["<CR>"] = cmp.mapping.confirm({ select = true, behavior = cmp.ConfirmBehavior.Replace }),
}
}
FAQ
Announcement
Minimal reproducible full config
Note: I did reproduce this with this config but didn't update the gif
Description
DoubleEndedSearcher
, typeDoub
and tab (it's not the first option) toDoubleEndedIterator
(in the prelude), it overwrites tooSteps to reproduce
Expected behavior
Should not overwrite the text
Actual behavior
Additional context
I'm using 99290b3ec1322070bcfb9e846450a46f6efa50f0 and ed31156
The text was updated successfully, but these errors were encountered: