 (require 'js2-refactor)
 (require 'tide)
 (add-hook 'js2-mode-hook #'js2-refactor-mode)
-
+;;(add-hook 'js-mode-hook #'indium-interaction-mode)
 (add-to-list 'auto-mode-alist '("\\.tsx\\'" . web-mode))
 (add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode))
 

  (eldoc-mode +1)
  (hs-minor-mode t)
  (tide-hl-identifier-mode +1)
  ;; company is an optional dependency. You have to
  ;; install it separately via package-install
  ;; `M-x package-install [ret] company`


;; formats the buffer before saving
(add-hook 'before-save-hook 'tide-format-before-save)
(add-hook 'typescript-mode-hook #'setup-tide-mode)

(provide 'init-js)
;;; init-js.el ends here

