snacks.nvim/queries/typst/images.scm
2025-03-01 07:55:36 +01:00

10 lines
181 B
Scheme

(call
(ident) @ident
(#eq? @ident "image")
(group (string) @image.src)
(#offset! @image.src 0 1 0 -1)
) @image
(math
(#set! image.ext "math.typ")
) @image.content @image