Skip to content

Commit

Permalink
Update treesitter queries for MDX
Browse files Browse the repository at this point in the history
  • Loading branch information
phelipetls committed Dec 14, 2023
1 parent af7b5ef commit c4e9c45
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .config/nvim/after/queries/markdown/highlights.scm
@@ -1,3 +1,4 @@
; extends

((inline) @_inline (#match? @_inline "^\(import\|export\)")) @nospell
((inline) @_inline (#lua-match? @_inline "^%s*import")) @nospell
((inline) @_inline (#lua-match? @_inline "^%s*export")) @nospell
7 changes: 6 additions & 1 deletion .config/nvim/after/queries/markdown/injections.scm
@@ -1,3 +1,8 @@
; extends

((inline) @_inline (#match? @_inline "^\(import\|export\)")) @tsx
((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"))

0 comments on commit c4e9c45

Please sign in to comment.