Based on https://github.com/jc-doyle/cmp-pandoc-referencesc. A source for nvim-cmp or blink.cmp. Provides completion for bibliography, reference and cross-ref items.
Install with your favorite package manager from:
"jmbuhr/cmp-pandoc-references"
require('cmp').setup {
sources = {
{ name = 'pandoc_references' }
}
}
-- ...
references = {
name = "pandoc_references",
module = "cmp-pandoc-references.blink",
},
-- ...
This source parses and validates the bibliography: <your/bib/location.bib>
YAML metadata field, to determine the destination of the file (see Pandoc).
If it is not included (or you specify it through a command-line argument), no bibliography completion items will be found.