1

This is quite annoying, when I'm typing a number company invokes completion after I type a . or when the number of digits exceeds company-minimum-prefix-length.

This will trigger other company-backends like company-dabbrev-code or company-yasnippet (if you've it enabled) or company-keyword.

Is there anyway I can get company to avoid completion on numbers for all major-modes?

  • Why shouldn't there be completion after a number and a .? If I type 100.ti in Ruby, I would hope to see some completions. – Dmitry Jun 29 '18 at 14:57
  • This seems to be valid only for Ruby. Is there any other language which allows this? – Chakravarthy Raghunandan Jun 29 '18 at 19:53
  • Not sure. Maybe not the other popular ones. But in OO languages, it's likely due to the problem with parsing the decimal sign. – Dmitry Jul 2 '18 at 12:49
  • Possibly, related: emacs.stackexchange.com/questions/9835/… – Mahdi Sep 1 '18 at 7:21
  • @Mahdi that does not work. I tried that out before posting this question – Chakravarthy Raghunandan Sep 7 '18 at 7:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.