ms-jpq / coq_nvim

Fast as FUCK nvim completion. SQLite, concurrent scheduler, hundreds of hours of optimization.
GNU General Public License v3.0
3.47k stars 96 forks source link

Text I've already typed gets duplicated when I accept a completion #623

Open vincent-sparks opened 6 months ago

vincent-sparks commented 6 months ago

About half the time, when I press Enter to accept a completion, coq_nvim will fail to delete what I had already typed before inserting the completion, causing it to be duplicated. After some testing I have determined that this occurs only when I start a new word while still in insert mode, e.g. if I type some_identifier.comple<TAB>, and accept copmpletion, I get some_identifier.complecompletion, but if some_identifier. is already on the line when I go into insert mode and I type only comple<TAB> and accept completion, it works correctly and I get some_identifier.completion.

It is possible something in my configuration is wonky, but I have no idea how I would check that. This problem has also persisted across multiple different machines, terminal emulators, and versions of coq.nvim. Will be happy to provide whatever other information you need.

mrphil2105 commented 6 months ago

I have the same issue. It does not happen too often, but when it happens I just have to undo and accept the completion again to apply it correctly. I am not sure what causes this.

dtrckd commented 5 months ago

same here

mihajlo0743 commented 5 months ago

I had similar issue due to autopairs plugin (mini.pairs). Disabling it fixed the issue for me.