tonini / alchemist.el

Elixir Tooling Integration Into Emacs
http://www.alchemist-elixir.org
906 stars 103 forks source link

Company mode issue with keywords < 3 characters long #286

Closed pragdave closed 7 years ago

pragdave commented 7 years ago

See this video: https://www.youtube.com/watch?v=CLiRhkRHEo8

If you enter "do" at the end of a line, and there are names that start "doxxx" in the buffer, the first completion is added when you hit return (the "do" becomes "doxxx")

Dave

tonini commented 7 years ago

Hi @pragdave

Thanks for your feedback about this behavior. The case you explaining is kind of known and I already started to think about to hardcore the handling about the completion issue with keywords like "do". But I'm still not sure what would be a proper solutation to handle this.

What I would recommend at this point is, that you setup your company mode variable "company-minimum-prefix-length" to 3 instead of 2. With this setup the completion will not start in cases like you explained, until you hit a third character.

Thanks the report and thanks for your patience.

pragdave commented 7 years ago

Thanks for the reply.

I understand your pain—I spend 30 fruitless minutes trying to understand company-mode before giving up.

Thanks for everything you do.

Dave

On Wed, Feb 8, 2017 at 12:46 AM, Samuel Tonini notifications@github.com wrote:

Hi @pragdave https://github.com/pragdave

Thanks for your feedback about this behavior. The case you explaining is kind of known and I already started to think about to hardcore the handling about the completion issue with keywords like "do". But I'm still not sure what would be a proper solutation to handle this.

What I would recommend at this point is, that you setup your company mode variable "company-minimum-prefix-length" to 3 instead of 2. With this setup the completion will not start in cases like you explained, until you hit a third character.

Thanks the report and thanks for your patience.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tonini/alchemist.el/issues/286#issuecomment-278243471, or mute the thread https://github.com/notifications/unsubscribe-auth/AAApmAXWvLCLKyZcrl1EAeN5kR141O8Iks5raWTjgaJpZM4L4ofg .

tonini commented 7 years ago

You're welcome and thanks for your feedback. :+1: