nvim/after/queries/markdown/injections.scm

17 lines
409 B
Scheme
Raw Normal View History

2024-02-03 21:47:50 +00:00
;extends
2024-03-15 12:22:22 +00:00
; Supporting dataviewjs
2024-02-03 21:47:50 +00:00
(fenced_code_block
((info_string) @_lang
(#match? @_lang "(dataviewjs)"))
(code_fence_content) @javascript
)
2024-03-15 12:22:22 +00:00
; Supporting MDX
((inline) @injection.content
(#lua-match? @injection.content "^%s*import")
(#set! injection.language "typescript"))
((inline) @injection.content
(#lua-match? @injection.content "^%s*export")
(#set! injection.language "typescript"))