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
    Commented Jun 29, 2018 at 14:57
  • This seems to be valid only for Ruby. Is there any other language which allows this? Commented Jun 29, 2018 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
    Commented Jul 2, 2018 at 12:49
  • 1
    Possibly, related: emacs.stackexchange.com/questions/9835/…
    – Mahdi
    Commented Sep 1, 2018 at 7:21
  • @Mahdi that does not work. I tried that out before posting this question Commented Sep 7, 2018 at 7:28


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.