attempt to fix emacs config

This commit is contained in:
Sakooooo 2024-09-06 19:22:05 +04:00
parent 061b9b3ec0
commit 23b6abe7cc
Signed by: sako
GPG key ID: FE52FD65B76E4751

View file

@ -912,15 +912,12 @@ this should be useful later
#+end_src
** Typescript
#+begin_src emacs-lisp
(use-package typescript-ts-mode
:mode (("\\.ts\\'" . typescript-ts-mode)
("\\.tsx\\'" . tsx-ts-mode))
:config
(add-hook 'typescript-ts-mode 'eglot-ensure)
(add-hook 'tsx-ts-mode 'eglot-ensure)
(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
** Astro
#+begin_src emacs-lisp