Fix #4355: trigger eldoc after company completions

This commit is contained in:
Henrik Lissner 2020-12-02 17:30:27 -05:00
parent b5e948054c
commit a9f57f14ac
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -67,11 +67,17 @@
;; completion is not activated, the value is ((t . nil)). ;; completion is not activated, the value is ((t . nil)).
(add-hook! 'evil-local-mode-hook (add-hook! 'evil-local-mode-hook
(when (memq 'company-emulation-alist emulation-mode-map-alists) (when (memq 'company-emulation-alist emulation-mode-map-alists)
(company-ensure-emulation-alist)))) (company-ensure-emulation-alist)))
;; Fix #4355: allow eldoc to trigger after completions.
(after! eldoc
(eldoc-add-command 'company-complete-selection
'company-complete-common
'company-abort)))
;; ;;
;; Packages ;;; Packages
(after! company-files (after! company-files
(add-to-list 'company-files--regexps "file:\\(\\(?:\\.\\{1,2\\}/\\|~/\\|/\\)[^\]\n]*\\)")) (add-to-list 'company-files--regexps "file:\\(\\(?:\\.\\{1,2\\}/\\|~/\\|/\\)[^\]\n]*\\)"))