Use tsx-ts-mode for TSX files

This commit is contained in:
Jeremy Dormitzer 2024-10-11 12:30:23 -04:00
parent ddc20b88e2
commit 3c178e80e4
2 changed files with 2 additions and 0 deletions

View File

@ -227,6 +227,7 @@
(typescript-mode . eglot-ensure)
(python-mode . eglot-ensure)
(js-web-mode . eglot-ensure)
(tsx-ts-mode . eglot-ensure)
(html-web-mode . eglot-ensure)
(scala-mode . eglot-ensure)
(c-mode . eglot-ensure)

View File

@ -1,6 +1,7 @@
;; -*- lexical-binding: t; -*-
(use-package treesit
:straight (:type built-in)
:mode ("\\.tsx\\'" . tsx-ts-mode)
:config
(setq treesit-language-source-alist
'((bash "https://github.com/tree-sitter/tree-sitter-bash")