3

I've configured the Java layer for my Spacemacs setup and am getting completion candidates using company-mode and the Eclim backend. However, everytime company-complete is triggered, I experience a short but noticable lag, which annoys me quite a bit.

Since I don't really need the autocompletion feature most of the time, I'd be glad if I can set up company mode in such a way that I have to trigger company-complete explicitly using a specific key binding (e.g. C-SPC, since that isn't really needed with evil-mode anyway).

I found no obvious candidate for this config option while browsing the company-* variables, and my Google fu hasn't turned up with any similar discussions so far. Just disabling company-mode using SPC : company-mode works, but triggering the completion using M-x company-complete during insert mode subsequently does nothing (except for printing a message that company was disabled). Same goes for toggling auto completion using SPC t a.

2
  • Does company-idle-delay look relevant? Commented Apr 30, 2017 at 19:48
  • Yes, setting company-idle-delay to nil seems to do the job. Do you want to post that as an answer so I can accept it? Commented May 2, 2017 at 5:10

1 Answer 1

1

You need to set company-idle-delay to nil.

Quoting its docstring:

The value of nil means no idle completion.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.