Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 1.12 KB

File metadata and controls

44 lines (31 loc) · 1.12 KB

cmp-pandoc-references

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.

Demo

cmp-pandoc-references

Installation

Install with your favorite package manager from:

"jmbuhr/cmp-pandoc-references"

nvim-cmp

require('cmp').setup {
  sources = {
    { name = 'pandoc_references' }
  }
}

blink.cmp

-- ...
    references = {
        name = "pandoc_references",
        module = "cmp-pandoc-references.blink",
    },
-- ...

Explanation & Limitations

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.