attempt to fix emacs config
This commit is contained in:
parent
061b9b3ec0
commit
23b6abe7cc
1 changed files with 3 additions and 6 deletions
|
@ -912,15 +912,12 @@ this should be useful later
|
||||||
#+end_src
|
#+end_src
|
||||||
** Typescript
|
** Typescript
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package typescript-ts-mode
|
(add-hook 'typescript-ts-mode 'eglot-ensure)
|
||||||
:mode (("\\.ts\\'" . typescript-ts-mode)
|
(add-hook 'tsx-ts-mode 'eglot-ensure)
|
||||||
("\\.tsx\\'" . tsx-ts-mode))
|
|
||||||
:config
|
|
||||||
(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)))
|
||||||
: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