feat(nvim): markdown bibtex injection

This commit is contained in:
Maciej Jur 2023-11-05 10:33:48 +01:00
parent 41a5c3e6bd
commit 5093657ddb
Signed by: kamov
GPG key ID: 191CBFF5F72ECAFD

View file

@ -2,21 +2,19 @@
(section
((paragraph) @p
(#match? @p "^:::bib")
)
(#set! injection.language "bibtex")
(#set! injection.include-children)
(#set! injection.combined)
) @injection.content
(section
((paragraph) @s (#match? @s "^:::bib"))
.
(paragraph)*
.
((paragraph) @e (#match? @e ":::"))
[
(
((paragraph) @s (#match? @s "^:::bibtex"))
.
(paragraph)*
.
((paragraph) @e (#match? @e ":::$"))
)
((paragraph) @p
(#match? @p "^:::bibtex")
(#match? @p ":::$")
)
]
(#set! injection.language "bibtex")
(#set! injection.include-children)