mirror of
https://github.com/folke/snacks.nvim
synced 2025-07-07 21:25:11 +00:00
fix(image.queries): add image type
This commit is contained in:
parent
714d7616f0
commit
1bbd47973d
3 changed files with 4 additions and 4 deletions
|
@ -5,7 +5,7 @@
|
|||
(#eq? @lang "math")
|
||||
(code_fence_content) @image.content
|
||||
(#set! injection.language "latex")
|
||||
(#set! image.ext "tex")
|
||||
(#set! image.ext "math.tex")
|
||||
) @image
|
||||
|
||||
(fenced_code_block
|
||||
|
@ -13,5 +13,5 @@
|
|||
(#eq? @lang "mermaid")
|
||||
(code_fence_content) @image.content
|
||||
(#set! injection.language "mermaid")
|
||||
(#set! image.ext "mmd")
|
||||
(#set! image.ext "chart.mmd")
|
||||
) @image
|
||||
|
|
|
@ -5,4 +5,5 @@
|
|||
|
||||
(inline_math
|
||||
(#set! image.lang "latex")
|
||||
(#set! image.ext "math.tex")
|
||||
) @image.content @image
|
||||
|
|
|
@ -7,5 +7,4 @@
|
|||
|
||||
(math
|
||||
(#set! image.ext "math.typ")
|
||||
(formula) @image
|
||||
) @image.content
|
||||
) @image.content @image
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue