From a578b320535be588f9996cd9901f0cd8b9a19c25 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Fri, 6 Sep 2024 19:28:44 +0400 Subject: [PATCH] oh thats why --- config/emacs/emacs.org | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/config/emacs/emacs.org b/config/emacs/emacs.org index 4c00ba9b..ec68cdea 100644 --- a/config/emacs/emacs.org +++ b/config/emacs/emacs.org @@ -912,12 +912,16 @@ this should be useful later #+end_src ** Typescript #+begin_src emacs-lisp - (add-hook 'typescript-ts-mode 'eglot-ensure) - (add-hook 'tsx-ts-mode 'eglot-ensure) + (add-hook 'typescript-ts-mode 'eglot-ensure) + (add-hook 'tsx-ts-mode 'eglot-ensure) - (setq treesit-language-source-alist + (setq auto-mode-alist + (append '((".*\\.ts\\'" . typescript-ts-mode) + (".*\\.tsx\\'" . tsx-ts-mode)))) + + (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))) + (tsx "https://github.com/tree-sitter/tree-sitter-typescript" "master" "tsx/src" nil nil))) #+end_src ** Astro #+begin_src emacs-lisp