mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-02 14:53:38 -05:00
If the base major mode doesn't exist, let's assume we want no fallthrough for this major mode (in the event the grammar isn't ready) and simply push forward anyway, even if a missing grammar results in a broken state. This will particularly affect major modes like `typescript-mode` (which simply won't be installed if +tree-sitter is enabled) and `go-{mod,work}-ts-mode` (for which no base major modes exist). The difference (generally) between most base and ts-modes is performance, not features, so "gracefully failing back to the base mode" makes sense UX-wise, but `typescript-mode` notably inferior to `typescript-ts-mode` (particularly in its TSX support). Beginners may misidentify its shortcomings as bugs, so it's better to simply error out early so the user can be made aware of the problem sooner and less ambiguously.
10 lines
275 B
EmacsLisp
10 lines
275 B
EmacsLisp
;; -*- no-byte-compile: t; -*-
|
|
;;; lang/javascript/packages.el
|
|
|
|
;; Major modes
|
|
(unless (modulep! +tree-sitter)
|
|
(package! typescript-mode :pin "481df3ad2cdf569d8e6697679669ff6206fbd2f9"))
|
|
|
|
;; Extensions
|
|
(package! nodejs-repl :pin "130d49b073a50b7aad472ae8cd05848a9840e480")
|