racer-rust / emacs-racer

Racer support for Emacs
399 stars 48 forks source link

Do I need to set company-mode in racer when global-company-mode is enabled? #99

Open yuzumx opened 6 years ago

yuzumx commented 6 years ago

Hello:

When global-company-mode is enabled, do I need to add this code to enable racer complete ?

(add-hook 'racer-mode-hook #'company-mode)

Thank you.

Dicridon commented 3 years ago

For me, it is a bit weird that if global-company-mode is enabled, racer-mode will fail to offer its full completion functionality, for example, the std::io:: triggers no completion. The `(add-hook 'racer-mode-hook #'company-mode) seems to be necessary.

Dicridon commented 3 years ago

Ok, after some tests, I found that it is company-fuzzy-mode who prevents racer-mode from reacting correctly. If global-company-mode is enabled, the hook is not necessary.