mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-06 15:13:33 -05:00
fix(javascript): missing grammar recipe for tsx-ts-mode
Close: #8476 Co-authored-by: SunskyXH <SunskyXH@users.noreply.github.com>
This commit is contained in:
@@ -85,11 +85,15 @@
|
|||||||
(+javascript-common-config 'typescript-ts-mode))
|
(+javascript-common-config 'typescript-ts-mode))
|
||||||
|
|
||||||
|
|
||||||
(use-package! tsx-ts-mode
|
(use-package! tsx-ts-mode ; 29.1+ only
|
||||||
:when (modulep! +tree-sitter)
|
:when (modulep! +tree-sitter)
|
||||||
:when (fboundp 'tsx-ts-mode) ; 29.1+ only
|
|
||||||
:mode "\\.[tj]sx\\'"
|
:mode "\\.[tj]sx\\'"
|
||||||
:defer t
|
:defer t
|
||||||
|
:init
|
||||||
|
(set-tree-sitter! nil 'tsx-ts-mode
|
||||||
|
'((tsx :url "https://github.com/tree-sitter/tree-sitter-typescript"
|
||||||
|
:commit "8e13e1db35b941fc57f2bd2dd4628180448c17d5"
|
||||||
|
:source-dir "tsx/src")))
|
||||||
:config
|
:config
|
||||||
(+javascript-common-config 'tsx-ts-mode))
|
(+javascript-common-config 'tsx-ts-mode))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user