lang/javascript: start tide/lsp later

Gives direnv and other mode hooks a chance to set up the environment
first.
This commit is contained in:
Henrik Lissner 2020-04-23 20:00:31 -04:00
parent fe8dd63f22
commit 28ec59cd20
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -133,7 +133,9 @@
;;
;;; Tools
(add-hook! '(js-mode-hook typescript-mode-hook web-mode-hook)
(add-hook! '(js2-mode-local-vars-hook
typescript-mode-local-vars-hook
web-mode-local-vars-hook)
(defun +javascript-init-lsp-or-tide-maybe-h ()
"Start `lsp' or `tide' in the current buffer.