npm

Does your artifact manager get in the way? Join us on Oct. 8 at 10am PT, to discuss how npm can help.Sign up »

coc-bibtex

1.2.5 • Public • Published

coc-bibtex

This Coc extension adds a BibTeX source to CocList. You can access it by running :CocList bibtex in (Neo)Vim. You can also use it as an autocompletion source for BibTeX entries.

Installation

Run :CocInstall coc-bibtex to install.

Configuration

Set list.source.bibtex.files to an array containing your .bib files. For instance, in coc-settings.json:

{
// 
  "list": {
    "source": {
      "bibtex": {
        "files": [
          "~/my-library.bib"
        ]
      }
    }
  }
// 
}

Or in vimrc:

call coc#config('list.source.bibtex', {
  \  'files': [
  \    '~/my-library.bib'
  \  ]
  \})

Using with LaTeX

The default configuration for the list source is to insert pandoc-style citations ([@cite-key]). If you would like to use this extension with LaTeX, add the following configuration:

In coc-settings.json:

{
//...
 
"list": {
  "source": {
    "bibtex": {
        "citation": {
            "before": "\cite{",
            "after": "\}"
        }
    }
  }
}
//...
}

Or in vimrc:

call coc#config('list.source.bibtex.citation', {
    \ 'before': '\cite{',
    \ 'after': '}'
    \ })

Todo

  • Add the ability to pass a .bib file as an argument to the list call
  • Color

install

npm i coc-bibtex

Downloadsweekly downloads

15

version

1.2.5

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability