diff --git a/init.el b/init.el index 771b214..feccf3d 100644 --- a/init.el +++ b/init.el @@ -182,6 +182,8 @@ (go "https://github.com/tree-sitter/tree-sitter-go") (gomod "https://github.com/camdencheek/tree-sitter-go-mod") (javascript "https://github.com/tree-sitter/tree-sitter-javascript") + (typescript "https://github.com/tree-sitter/tree-sitter-typescript" + nil "typescript/src") (bash "https://github.com/tree-sitter/tree-sitter-bash") (cmake "https://github.com/uyha/tree-sitter-cmake") (blueprint "https://github.com/huanie/tree-sitter-blueprint") @@ -1647,6 +1649,13 @@ otherwise, call `bibtex-find-text'." :ensure nil :hook (js-ts-mode . eglot-ensure)) +;; TypeScript +(use-package typescript-ts-mode + :ensure nil + :hook (typescript-ts-mode . eglot-ensure) + :init + (add-to-list 'auto-mode-alist `(,(rx ".ts" eos) . typescript-ts-mode))) + ;; Polymode (use-package polymode :config