From 72a70f53757adaaa20a2bbad16a0206a97769ada Mon Sep 17 00:00:00 2001 From: Tobias Ostner Date: Wed, 21 Aug 2024 10:18:43 +0200 Subject: [PATCH] Enable treesitter for Typescript --- nix/config/emacs/init.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nix/config/emacs/init.el b/nix/config/emacs/init.el index f0cdd45..3b5833f 100644 --- a/nix/config/emacs/init.el +++ b/nix/config/emacs/init.el @@ -613,7 +613,8 @@ :ts-mode 'swift-ts-mode :remap '(swift-mode) :ext "\\.swift\\'")) - (setq treesit-auto-langs '(swift python)) + (setq treesit-auto-langs '(swift python typescript tsx)) + (treesit-auto-add-to-auto-mode-alist 'all) (global-treesit-auto-mode)) (use-package yaml-mode)