Use tsx-ts-mode for TSX files
This commit is contained in:
parent
ddc20b88e2
commit
3c178e80e4
@ -227,6 +227,7 @@
|
|||||||
(typescript-mode . eglot-ensure)
|
(typescript-mode . eglot-ensure)
|
||||||
(python-mode . eglot-ensure)
|
(python-mode . eglot-ensure)
|
||||||
(js-web-mode . eglot-ensure)
|
(js-web-mode . eglot-ensure)
|
||||||
|
(tsx-ts-mode . eglot-ensure)
|
||||||
(html-web-mode . eglot-ensure)
|
(html-web-mode . eglot-ensure)
|
||||||
(scala-mode . eglot-ensure)
|
(scala-mode . eglot-ensure)
|
||||||
(c-mode . eglot-ensure)
|
(c-mode . eglot-ensure)
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
;; -*- lexical-binding: t; -*-
|
;; -*- lexical-binding: t; -*-
|
||||||
(use-package treesit
|
(use-package treesit
|
||||||
:straight (:type built-in)
|
:straight (:type built-in)
|
||||||
|
:mode ("\\.tsx\\'" . tsx-ts-mode)
|
||||||
:config
|
:config
|
||||||
(setq treesit-language-source-alist
|
(setq treesit-language-source-alist
|
||||||
'((bash "https://github.com/tree-sitter/tree-sitter-bash")
|
'((bash "https://github.com/tree-sitter/tree-sitter-bash")
|
||||||
|
Loading…
Reference in New Issue
Block a user