From 024bbfc6163acbd2545f74d4537f801ae7bf012f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Wed, 16 Oct 2019 16:29:41 +0100 Subject: [PATCH] Use of company-capf backend in eglot-managed buffers * eglot.el (company-backends): forward-declare (eglot--managed-mode): Force company-backends to company-capf --- lisp/progmodes/eglot.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 9460e4b3c64..0220969e6fd 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -71,6 +71,8 @@ (require 'filenotify) (require 'ert) (require 'array) +(defvar company-backends) ; forward-declare, but don't require company yet + ;;; User tweakable stuff @@ -1196,6 +1198,7 @@ and just return it. PROMPT shouldn't end with a question mark." (eglot--setq-saving eldoc-documentation-function #'eglot-eldoc-function) (eglot--setq-saving xref-prompt-for-identifier nil) (eglot--setq-saving flymake-diagnostic-functions '(eglot-flymake-backend t)) + (eglot--setq-saving company-backends '(company-capf)) (add-function :around (local 'imenu-create-index-function) #'eglot-imenu) (flymake-mode 1) (eldoc-mode 1)) -- 2.39.2