Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opt-out to company-backends overwrite #324

Closed
shackra opened this issue Oct 18, 2019 · 1 comment
Closed

opt-out to company-backends overwrite #324

shackra opened this issue Oct 18, 2019 · 1 comment

Comments

@shackra
Copy link

shackra commented Oct 18, 2019

I noticed that eglot overwrite the value of company-backends, I don't really like this because in my configuration I already set some sane defaults for company-backends which includes company-capf and other stuff that modifies all backends to include YaSnippet snippets, so I would like to have the option to tell eglot to not overwrite the value of company-backends when turned on.

@joaotavora
Copy link
Owner

OK. You're not the first to complain. See a11a41b#commitcomment-35576270

I've introduced a new variable eglot-stay-out-of. Use it like this:

(setq eglot-stay-out-of '(company))

bhankas pushed a commit to bhankas/emacs that referenced this issue Sep 18, 2022
…ing Eglot sessions

* NEWS.md: Mention new variable eglot-stay-out-of

* eglot.el (eglot-stay-out-of): New variable.
(eglot--setq-saving): Use it.
(eglot--managed-mode): Use eglot--setq-saving for imenu.  No need
to remove 'eglot-flymake-backend from diagnostic functions.
bhankas pushed a commit to bhankas/emacs that referenced this issue Sep 19, 2022
…ing Eglot sessions

* NEWS.md: Mention new variable eglot-stay-out-of

* eglot.el (eglot-stay-out-of): New variable.
(eglot--setq-saving): Use it.
(eglot--managed-mode): Use eglot--setq-saving for imenu.  No need
to remove 'eglot-flymake-backend from diagnostic functions.
bhankas pushed a commit to bhankas/emacs that referenced this issue Sep 19, 2022
* NEWS.md: Mention new variable eglot-stay-out-of

* eglot.el (eglot-stay-out-of): New variable.
(eglot--setq-saving): Use it.
(eglot--managed-mode): Use eglot--setq-saving for imenu.  No need
to remove 'eglot-flymake-backend from diagnostic functions.

#324: joaotavora/eglot#324
jollaitbot pushed a commit to sailfishos-mirror/emacs that referenced this issue Oct 12, 2022
* NEWS.md: Mention new variable eglot-stay-out-of

* eglot.el (eglot-stay-out-of): New variable.
(eglot--setq-saving): Use it.
(eglot--managed-mode): Use eglot--setq-saving for imenu.  No need
to remove 'eglot-flymake-backend from diagnostic functions.

GitHub-reference: fix joaotavora/eglot#324
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants