         "roi" #'tide-organize-imports))
 
 
+(when (featurep! +lsp)
+  (add-hook! (js2-mode typescript-mode) #'lsp!))
+
+
 (def-package! xref-js2
   :when (featurep! :tools lookup)
   :after (:or js2-mode rjsx-mode)

    :return "return" :yield "import"))


;; `coffee-mode'
(setq coffee-indent-like-python-mode t)
(after! coffee-mode
  (set-docsets! 'coffee-mode "CoffeeScript"))


;;
;; Tools

(when (featurep! +lsp)
  (add-hook! (js2-mode typescript-mode) #'lsp!))


(def-package! tide
  :defer t



;;
;;; Projects

(def-project-mode! +javascript-npm-mode
  :modes (html-mode css-mode web-mode typescript-mode js2-mode rjsx-mode json-mode markdown-mode)
