[Emacs] Use typescript-mode for tsx, use lsp with typescript

This commit is contained in:
Ivan Malison 2023-07-31 08:15:29 -06:00
parent e387521a31
commit 1ad79fd7e6

View File

@ -2753,10 +2753,13 @@ The following is taken from [[https://github.com/syl20bnr/spacemacs/blob/a650877
(delete-process "tern")) (delete-process "tern"))
#+END_SRC #+END_SRC
*** typescript *** typescript
#+BEGIN_SRC emacs-lisp #+begin_src emacs-lisp
(use-package typescript-mode (use-package typescript-mode
:mode "\\.ts\\'") :mode ("\\.ts\\'" "\\.tsx\\'")
#+END_SRC :config
(progn
(add-hook 'typescript-mode-hook 'lsp-deferred)))
#+end_src
*** coffee script *** coffee script
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package coffee-mode (use-package coffee-mode