Skip to main content

A language server for managing citations stored in BibTeX and BibLaTeX files.

Project description

citation-langserver

citation-langserver is a language server for working with citations stored in BibTeX or BibLaTeX files.

citation-langserver supports code completion, hover, jump to definition, and find references. It supports absolute file paths for bibliographies, relative file paths, as well as glob-based file paths. It is compatible with all clients that support the Language Server Protocol

Installation

Run pip3 install citation-langserver to install.

Usage

Configure citation-langserver as you would any other LSP in your text editor of choice.

For instance, using CoC in Vim, you might add the following to your coc-settings.json file:

  "languageserver": {
    "citation": {
      "command": "/usr/local/bin/citation-langserver",
      "filetypes": ["markdown"],
      "settings": {
        "citation": {
          "bibliographies": [
            "~/library.bib",
			"./*.bib"
          ]
        }
      }
    }
  }

Configuration

The setting citation.bibliographies needs to be sent by the client to the server and contain an array of file paths. The file paths can include:

  • Absolute paths
  • Relative paths
  • Globs (absolute or relative)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for citation-langserver, version 0.2.2
Filename, size File type Python version Upload date Hashes
Filename, size citation_langserver-0.2.2-py3-none-any.whl (10.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size citation-langserver-0.2.2.tar.gz (7.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page