feat(nvim): markdown bibtex injection
This commit is contained in:
parent
41a5c3e6bd
commit
5093657ddb
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue