lang/javascript: doom-project-root support & clean up processes for tide

This commit is contained in:
Henrik Lissner 2018-04-19 00:51:51 -04:00
parent 185f47d2aa
commit 605c897d96
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -57,6 +57,13 @@
:documentation #'tide-documentation-at-point)
(add-hook 'tide-mode-hook #'eldoc-mode)
;; 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
(add-hook! 'tide-mode-hook
(add-hook 'kill-buffer-hook #'+javascript|cleanup-tide-processes nil t))
(def-menu! +javascript/refactor-menu
"TODO"
'(("rename symbol" :exec tide-rename-symbol)