copilot-emacs / copilot.el

An unofficial Copilot plugin for Emacs.
MIT License
1.79k stars 126 forks source link

Way to turn autocompletion off completely #202

Closed mattiuusitalo closed 10 months ago

mattiuusitalo commented 10 months ago

It appears that I can't turn automatic completions off. So I'm currently doing this to make it very long which kind of disables the automatic completions: (setq copilot-idle-delay (* 60 60 10))

I propose it could be (setq copilot-idle-delay -1)

which turns the automatic completions completely off.

zerolfx commented 10 months ago

In your case, you may not want to enable copilot-mode.

Also see "Option 2: Manually provide completions" section in README for reference.

mattiuusitalo commented 10 months ago

I see. Thanks!

xmatos-so commented 7 months ago

It seems to me copilot-complete doesn't work when copilot-mode is disabled. What I have done is enable copilot-mode and add a fn to disable predicates that always return true:

(add-to-list 'copilot-disable-predicates #'(lambda () t))
iostapyshyn commented 7 months ago

Experiencing same as @xmatos-so here. Should we reopen the issue?