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)

Project details


Download files

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

Source Distribution

citation-langserver-0.2.2.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

citation_langserver-0.2.2-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file citation-langserver-0.2.2.tar.gz.

File metadata

  • Download URL: citation-langserver-0.2.2.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.4 Linux/5.11.15-zen1-2-zen

File hashes

Hashes for citation-langserver-0.2.2.tar.gz
Algorithm Hash digest
SHA256 37c569efc153db8e6992dcfabd7beb31649272c2c7b5ff43a5d895c7e7d8a4a1
MD5 1f1072860b0e7a571b7d14c6844d2552
BLAKE2b-256 88aa7e94e8d1bfabe3fab7266df78a7239939c620cef78c9970f5751643163f4

See more details on using hashes here.

File details

Details for the file citation_langserver-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for citation_langserver-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 22a2eff0325a0df307f77ea6f5ae637eb20c224575e383b7cdcc418c8392a6cb
MD5 9a22e0fb210ea6c61c477ecbf974a1ca
BLAKE2b-256 9e03db28a2529a5bbc3e09b557b61ab7ccdb3de43e456cd66bec7e0d2b2cb9d1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page