citation-langserver-0.2.2
توضیحات
A language server for managing citations stored in BibTeX and BibLaTeX files.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | citation-langserver-0.2.2 |
| نام | citation-langserver |
| نسخه کتابخانه | 0.2.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | oncomouse |
| ایمیل نویسنده | oncomouse@gmail.com |
| آدرس صفحه اصلی | https://github.com/oncomouse/citation-langserver |
| آدرس اینترنتی | https://pypi.org/project/citation-langserver/ |
| مجوز | MIT |
# 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](https://langserver.org/)
# 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](https://github.com/neoclide/coc.nvim) in Vim, you might add the following to your `coc-settings.json` file:
```json
"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)
نیازمندی
| مقدار | نام |
|---|---|
| >=0.10.2,<0.11.0 | pygls |
| >=1.0.0,<2.0.0 | bibparse |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6.1,<4.0.0 | Python |
نحوه نصب
نصب پکیج whl citation-langserver-0.2.2:
pip install citation-langserver-0.2.2.whl
نصب پکیج tar.gz citation-langserver-0.2.2:
pip install citation-langserver-0.2.2.tar.gz