racer-rust / emacs-racer

Racer support for Emacs
399 stars 48 forks source link

Add the possibility to disable multiple matches #145

Open Tiv0w opened 3 years ago

Tiv0w commented 3 years ago

Hi! When using eldoc, I don't like the need to match a single candidate via completing-read when there are multiple candidates.

I use company (with the company-box frontend), and it's already showing me all possible signatures. Having to interrupt my completion to match a candidate to show its signature is breaking my user experience. 2020-10-26-083523_739x204_escrotum

I suggest a new user-customizable variable to let users choose whether or not they want the "multiple matches" prompt. If set to nil, racer--describe-at-point could show the first match, and add a hint to specify there are more possible signatures. Something like racer-eldoc-prompt-for-multiple-matches could do the trick.

Thanks in advance for the response.