* eglot.el (eglot-completion-at-point): show autoImportText via company-docsig.
GitHub-reference: fix https://github.com/joaotavora/eglot/issues/769
(kind (alist-get (plist-get lsp-item :kind)
eglot--kind-names)))
(intern (downcase kind))))
+ :company-docsig
+ ;; FIXME: autoImportText is specific to the pyright language server
+ (lambda (proxy)
+ (when-let* ((lsp-comp (get-text-property 0 'eglot--lsp-item proxy))
+ (data (plist-get (funcall resolve-maybe lsp-comp) :data))
+ (import-text (plist-get data :autoImportText)))
+ import-text))
:company-doc-buffer
(lambda (proxy)
(let* ((documentation