]> git.eshelyaron.com Git - emacs.git/commitdiff
Use flex completion if available by default
authorJoão Távora <joaotavora@gmail.com>
Tue, 22 Dec 2020 17:31:52 +0000 (17:31 +0000)
committerJoão Távora <joaotavora@gmail.com>
Tue, 22 Dec 2020 17:31:52 +0000 (17:31 +0000)
* eglot.el (eglot--managed-mode): Set completion-styles.

GitHub-reference: close https://github.com/joaotavora/eglot/issues/575

lisp/progmodes/eglot.el

index 35c959bb20d0410b596b546ca00c42cb6ea24844..1a53c16dfc905092ecbc1a5abc03e2bf82890ea7 100644 (file)
@@ -1362,6 +1362,7 @@ Use `eglot-managed-p' to determine if current buffer is managed.")
     (eglot--setq-saving flymake-diagnostic-functions '(eglot-flymake-backend t))
     (eglot--setq-saving company-backends '(company-capf))
     (eglot--setq-saving company-tooltip-align-annotations t)
+    (eglot--setq-saving completion-styles '(flex basic))
     (unless (eglot--stay-out-of-p 'imenu)
       (add-function :before-until (local 'imenu-create-index-function)
                     #'eglot-imenu))