emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/eglot a11a41b 63/69: Use of company-capf backend in egl


From: João Távora
Subject: [elpa] externals/eglot a11a41b 63/69: Use of company-capf backend in eglot-managed buffers
Date: Sun, 20 Oct 2019 08:21:54 -0400 (EDT)

branch: externals/eglot
commit a11a41bd67970c62474385da98b9ab7209802126
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>

    Use of company-capf backend in eglot-managed buffers
    
    * eglot.el (company-backends): forward-declare
    (eglot--managed-mode): Force company-backends to company-capf
---
 eglot.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/eglot.el b/eglot.el
index 9460e4b..0220969 100644
--- a/eglot.el
+++ b/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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]