Minor, general refactors

Also rename custom lookup handlers for consistency and use the new
inline :async property instead.
This commit is contained in:
Henrik Lissner 2019-05-02 17:57:31 -04:00
parent d17764366e
commit 1c976dc0e4
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
6 changed files with 18 additions and 13 deletions

View file

@ -159,9 +159,9 @@
(setq-default company-backends (delq 'company-tide (default-value 'company-backends))))
(set-company-backend! 'tide-mode 'company-tide)
;; navigation
(set-lookup-handlers! 'tide-mode :async t
:definition #'tide-jump-to-definition
:references #'tide-references)
(set-lookup-handlers! 'tide-mode
:definition '(tide-jump-to-definition :async t)
:references '(tide-references :async t))
;; resolve to `doom-project-root' if `tide-project-root' fails
(advice-add #'tide-project-root :override #'+javascript*tide-project-root)
;; cleanup tsserver when no tide buffers are left