i hate this

This commit is contained in:
Sakooooo 2024-09-06 21:48:59 +04:00
parent a578b32053
commit 3008aa610d
Signed by: sako
GPG key ID: FE52FD65B76E4751

View file

@ -912,16 +912,12 @@ 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 'typescript-ts-mode 'eglot-ensure)
(add-hook 'tsx-ts-mode 'eglot-ensure) (add-hook 'tsx-ts-mode 'eglot-ensure)
(setq auto-mode-alist (setq treesit-language-source-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) '((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 #+end_src
** Astro ** Astro
#+begin_src emacs-lisp #+begin_src emacs-lisp