update typescript emacs configuration
This commit is contained in:
parent
f7d2b615d5
commit
061b9b3ec0
1 changed files with 9 additions and 4 deletions
|
@ -912,10 +912,15 @@ this should be useful later
|
||||||
#+end_src
|
#+end_src
|
||||||
** Typescript
|
** Typescript
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package typescript-mode
|
(use-package typescript-ts-mode
|
||||||
:mode ("\\.ts\\'"
|
:mode (("\\.ts\\'" . typescript-ts-mode)
|
||||||
"\\.tsx\\'")
|
("\\.tsx\\'" . tsx-ts-mode))
|
||||||
:hook (typescript-mode . eglot-ensure))
|
:config
|
||||||
|
(setq treesit-language-source-alist
|
||||||
|
'((typescript "https://github.com/tree-sitter/tree-sitter-typescript" "master" "typescript/src" nil nil)
|
||||||
|
(tsx "https://github.com/tree-sitter/tree-sitter-typescript" "master" "tsx/src" nil nil)))
|
||||||
|
:hook ((typescript-mode . eglot-ensure)
|
||||||
|
(tsx-ts-mode . eglot-ensure))
|
||||||
#+end_src
|
#+end_src
|
||||||
** Astro
|
** Astro
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
|
Loading…
Reference in a new issue