Words/Characters getting deleted
hood opened this issue · 3 comments
Checkhealth
Describe the bug
While typing it often happens that the words/characters I'm typing are getting deleted. I have to re-type 2/3 times (it always happens so fast I barely count it). It's something that has started happening as soon as I have included nvim-compe into my NeoVim setup, and happens as soon as the autocompletiong popup appears.
To Reproduce
Simply type stuff that is gonna get autocompleted. I can't reproduce it at will though.
UPDATE:
I'm now able to reproduce the issue consistently across two different systems with different OSs (Xubuntu, Arch). The words I've typed are getting deleted as soon as I press dot (.
) when the autocomplete menu is open.
Video:
https://streamable.com/q5auwq
I've found out this behaviour is caused by using nvim-compe
and having completopt
configured like the following:
set completeopt=menuone,noinsert,noselect,longest
However having the sampe completeopt
configuration with other autocompletion plugins (completion-nvim
, for example) doesn't cause the same issue.
After some experiments I've found it's the longest
option which is causing the last word to be deleted if I press .
while the completion menu is displayed.
I think I'm having a very similar issue; just wasn't sure if compe was what was causing it. I made a detailed post with instructions on how to reproduce on the nvim discourse here in case that's helpful: https://neovim.discourse.group/t/strange-issue-with-lsp-and-nvim-compe/956
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.