death
This commit is contained in:
parent
30f0a2d20d
commit
ef72c91bb4
1 changed files with 3 additions and 2 deletions
|
@ -912,12 +912,13 @@ this should be useful later
|
||||||
#+end_src
|
#+end_src
|
||||||
** Typescript
|
** Typescript
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(add-hook 'typescript-ts-mode 'eglot-ensure)
|
|
||||||
(add-hook 'tsx-ts-mode 'eglot-ensure)
|
|
||||||
|
|
||||||
(add-to-list 'auto-mode-alist '(".*\\.ts" . typescript-ts-mode))
|
(add-to-list 'auto-mode-alist '(".*\\.ts" . typescript-ts-mode))
|
||||||
(add-to-list 'auto-mode-alist '(".*\\.tsx" . tsx-ts-mode))
|
(add-to-list 'auto-mode-alist '(".*\\.tsx" . tsx-ts-mode))
|
||||||
|
|
||||||
|
(add-hook 'typescript-ts-mode 'eglot-ensure)
|
||||||
|
(add-hook 'tsx-ts-mode 'eglot-ensure)
|
||||||
|
|
||||||
(setq treesit-language-source-alist
|
(setq treesit-language-source-alist
|
||||||
'((typescript "https://github.com/tree-sitter/tree-sitter-typescript" "master" "typescript/src" nil nil)
|
'((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)))
|
(tsx "https://github.com/tree-sitter/tree-sitter-typescript" "master" "tsx/src" nil nil)))
|
||||||
|
|
Loading…
Reference in a new issue