From 3c178e80e4713faf9f9813f8752220b5b53ae592 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Fri, 11 Oct 2024 12:30:23 -0400 Subject: [PATCH] Use tsx-ts-mode for TSX files --- emacs/.emacs.d/config/init-ide.el | 1 + emacs/.emacs.d/config/init-treesit.el | 1 + 2 files changed, 2 insertions(+) diff --git a/emacs/.emacs.d/config/init-ide.el b/emacs/.emacs.d/config/init-ide.el index 8e84ba6..487a64f 100644 --- a/emacs/.emacs.d/config/init-ide.el +++ b/emacs/.emacs.d/config/init-ide.el @@ -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) diff --git a/emacs/.emacs.d/config/init-treesit.el b/emacs/.emacs.d/config/init-treesit.el index 1c59357..5aef50a 100644 --- a/emacs/.emacs.d/config/init-treesit.el +++ b/emacs/.emacs.d/config/init-treesit.el @@ -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")