lang/javascript: enable eldoc-mode on tide-mode-hook

This commit is contained in:
Henrik Lissner 2019-08-08 10:05:39 -04:00
parent ef4424bda6
commit 5454ca4c75
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -176,6 +176,10 @@ to tide."
;; cleanup tsserver when no tide buffers are left ;; cleanup tsserver when no tide buffers are left
(add-hook! 'tide-mode-hook (add-hook! 'tide-mode-hook
(add-hook 'kill-buffer-hook #'+javascript-cleanup-tide-processes-h nil t)) (add-hook 'kill-buffer-hook #'+javascript-cleanup-tide-processes-h nil t))
;; Eldoc is activated too soon and disables itself, thinking there is no eldoc
;; support in the current buffer, so we must re-enable it later once eldoc
;; support exists.
(add-hook 'tide-mode-hook #'eldoc-mode)
(define-key tide-mode-map [remap +lookup/documentation] #'tide-documentation-at-point) (define-key tide-mode-map [remap +lookup/documentation] #'tide-documentation-at-point)