         "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)

  (add-hook 'eslintd-fix-mode-hook #'+javascript|set-flycheck-executable-to-eslint))


;; `skewer-mode'
(map! :localleader
      :prefix "s"
      (:after skewer-mode

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


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


;;
;;; Tools

(def-package! tide
  :defer t
