-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Completion replaces existing word incorrectly if they end on the same letter #5676
Comments
I think this is just a missing config here: helix/helix-term/src/ui/completion.rs Lines 114 to 117 in 91dca3f
|
@pascalkuthe you mentioned this on another issue somewhere ^ |
Sorry forgot about this @archseer . This is indeed intended behavior. LSPs provide two options for handeling autocompletions: replace or insert. |
@pascalkuthe @archseer When would this ever be the desired behaviour? It results in corrupted syntax. I’d highly recommend making insert the default behaviour. I don’t remember once ending up with corrupted syntax while using VSCode (and I’m so glad I don’t have to use VSCode anymore for a multitude of other reasons). Also, note that the replacement isn’t being carried out perfectly either (the selection goes up to but does not include the final “t”). That might be a separate bug, thought. |
Simple let's say you have two functions Offering an option definitely makes sense. I also prefer the |
Duplicate of #4380 |
Token following where a completion should be inserted is erroneously replaced with the completion.
I press i and start typing.
So far, so good…
I select the first completion. And it replaces “events” instead of being inserted before it.
helix 22.12 (08c35ab6) on Fedora Silverblue 37 in Black Box terminal under GNOME.
Possibly related to #2580
The text was updated successfully, but these errors were encountered: