* eglot.el (eglot--managed-mode): check if flex style available
Copyright-paperwork-exempt: yes
GitHub-reference: fix https://github.com/joaotavora/eglot/issues/582
(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))
+ (when (assoc 'flex completion-styles-alist)
+ (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))