:type '(choice (const :tag "Don't show confirmation prompt" nil)
(symbol :tag "Show confirmation prompt" 'confirm)))
+;; Customizable via `completion-category-overrides'.
+(when (assoc 'flex completion-styles-alist)
+ (add-to-list 'completion-category-defaults '(eglot (styles flex basic))))
+
\f
;;; Constants
;;;
(eglot--setq-saving flymake-diagnostic-functions '(eglot-flymake-backend))
(eglot--setq-saving company-backends '(company-capf))
(eglot--setq-saving company-tooltip-align-annotations t)
- (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))
(get-text-property 0 'eglot--lsp-item c)
:sortText)
"")))))
- (metadata `(metadata . ((display-sort-function . ,sort-completions))))
+ (metadata `(metadata (category . eglot)
+ (display-sort-function . ,sort-completions)))
resp items (cached-proxies :none)
(proxies
(lambda ()