Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vincent-sparks opened this issue Feb 23, 2024 · 3 comments
Open

Comments

@vincent-sparks
Copy link

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
Copy link

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
Copy link

dtrckd commented Mar 7, 2024

same here

@mihajlo0743
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants