From 523ed82710f920dfd79e912b9782e9c3dbefe5c3 Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Mon, 23 Sep 2024 06:53:31 +0800 Subject: [PATCH] Add citation-langserver LSP server. --- README.md | 1 + README.zh-CN.md | 2 + langserver/citation-langserver.json | 8 ++++ lsp-bridge.el | 3 ++ todo.md | 58 ++++++++++++++--------------- 5 files changed, 42 insertions(+), 30 deletions(-) create mode 100644 langserver/citation-langserver.json diff --git a/README.md b/README.md index 55964779a0..e11f50f3ed 100644 --- a/README.md +++ b/README.md @@ -363,6 +363,7 @@ If your language supports mixed multi-language servers, it is recommended to che | Astro | [astro](https://github.com/withastro/language-tools/tree/main/packages/language-server) | `npm i -g @astrojs/language-server` | | Bash | [bash-language-server](https://github.com/bash-lsp/bash-language-server) | | | Beancount | [beancount-language-server](https://github.com/polarmutex/beancount-language-server) | `cargo install beancount-language-server` | +| BibTex | [citation-langserver](https://github.com/oncomouse/citation-langserver) | | | Clojure | [clojure-lsp](https://github.com/clojure-lsp/clojure-lsp) | If you use `homebrew`, please ensure install `clojure-lsp/brew/clojure-lsp-native` [clojure-lsp-native](https://clojure-lsp.io/installation/#homebrew-macos-and-linux) | | Cmake | [cmake-language-server](https://github.com/regen100/cmake-language-server) | `pip install cmake-language-server` | | Cobol | [che-che4z-lsp-for-cobol](https://github.com/eclipse-che4z/che-che4z-lsp-for-cobol) | | diff --git a/README.zh-CN.md b/README.zh-CN.md index 190f1b15e5..5fafe7276a 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -359,6 +359,8 @@ lsp-bridge 针对许多语言都提供 2 个以上的语言服务器支持, | Astro | [astro](https://github.com/withastro/language-tools/tree/main/packages/language-server) | `npm i -g @astrojs/language-server` | | Bash | [bash-language-server](https://github.com/bash-lsp/bash-language-server) | | | Beancount | [beancount-language-server](https://github.com/polarmutex/beancount-language-server) | `cargo install beancount-language-server` | +| BibTex | [citation-langserver](https://github.com/oncomouse/citation-langserver) | | + | Clojure | [clojure-lsp](https://github.com/clojure-lsp/clojure-lsp) | 如果使用 `homebrew` 安装的, 请确保安装的是 `clojure-lsp/brew/clojure-lsp-native` [clojure-lsp-native](https://clojure-lsp.io/installation/#homebrew-macos-and-linux) | | Cmake | [cmake-language-server](https://github.com/regen100/cmake-language-server) | `pip install cmake-language-server` | | Cobol | [che-che4z-lsp-for-cobol](https://github.com/eclipse-che4z/che-che4z-lsp-for-cobol) | | diff --git a/langserver/citation-langserver.json b/langserver/citation-langserver.json new file mode 100644 index 0000000000..702e3fd23e --- /dev/null +++ b/langserver/citation-langserver.json @@ -0,0 +1,8 @@ +{ + "name": "citation-langserver", + "languageId": "bibtex", + "command": [ + "citation-langserver" + ], + "settings": {} +} diff --git a/lsp-bridge.el b/lsp-bridge.el index d40a72a5c5..98508b05d8 100644 --- a/lsp-bridge.el +++ b/lsp-bridge.el @@ -587,6 +587,7 @@ Possible choices are basedpyright_ruff, pyright_ruff, pyright-background-analysi (solidity-mode . "solidity") (gleam-ts-mode . "gleam") (ada-mode . "ada-language-server") + (bibtex-mode . "citation-langserver") (feature-mode . "cucumber-language-server") (rego-mode . "regal") (puppet-mode . "puppet-languageserver") @@ -706,6 +707,7 @@ Possible choices are basedpyright_ruff, pyright_ruff, pyright-background-analysi solidity-mode-hook gleam-ts-mode-hook ada-mode-hook + bibtex-mode-hook feature-mode-hook rego-mode-hook puppet-mode-hook @@ -779,6 +781,7 @@ you can customize `lsp-bridge-get-workspace-folder' to return workspace folder p (raku-mode . raku-indent-offset) ; Perl6/Raku (erlang-mode . erlang-indent-level) ; Erlang (ada-mode . ada-indent) ; Ada + (bibtex-mode . lsp-bridge-indent-two-level) ; BibTex (feature-mode . feature-indent-level) ; Cucumber (rego-mode . lsp-bridge-indent-two-level) ; Rego (puppet-mode . puppet-indent-level) ; Puppet diff --git a/todo.md b/todo.md index 4a79fb5c9e..81c69515c2 100644 --- a/todo.md +++ b/todo.md @@ -4,60 +4,58 @@ Below LSP server haven't supported, PR are welcome. ;) 2. **PowerShell**: [github.com/PowerShell/PowerShellEditorServices](https://github.com/PowerShell/PowerShellEditorServices) (need env to test start command) -3. **Coq**: coq-lsp +3. **Coq**: coq-lsp (Looks is multiple language LSP server) -4. **Delphi**: Embarcadero (Proprietary - DelphiLSP) +4. **Delphi**: Embarcadero (Proprietary - DelphiLSP) (Need found the full path of DelphiLSP.exe in Windows) -5. **BibTeX**: [github.com/oncomouse/citation-langserver](https://github.com/oncomouse/citation-langserver) +5. **JSON-LD**: [github.com/ajuvercr/jsonld-lsp](https://github.com/ajuvercr/jsonld-lsp) -6. **JSON-LD**: [github.com/ajuvercr/jsonld-lsp](https://github.com/ajuvercr/jsonld-lsp) +6. **Ballerina**: [github.com/ballerina-platform/ballerina-lang/tree/master/language-server](https://github.com/ballerina-platform/ballerina-lang/tree/master/language-server) -7. **Ballerina**: [github.com/ballerina-platform/ballerina-lang/tree/master/language-server](https://github.com/ballerina-platform/ballerina-lang/tree/master/language-server) +7. **Langium**: [github.com/langium/langium](https://github.com/langium/langium) -8. **Langium**: [github.com/langium/langium](https://github.com/langium/langium) +8. **Odin**: [github.com/DanielGavin/ols](https://github.com/DanielGavin/ols) -9. **Odin**: [github.com/DanielGavin/ols](https://github.com/DanielGavin/ols) +9. **Xtext** (Any Language): [github.com/eclipse/xtext-core](https://github.com/eclipse/xtext-core) -10. **Xtext** (Any Language): [github.com/eclipse/xtext-core](https://github.com/eclipse/xtext-core) +10. **ActionScript3**: [github.com/BowlerHatLLC/vscode-nextgenas/tree/master/language-server](https://github.com/BowlerHatLLC/vscode-nextgenas/tree/master/language-server) -11. **ActionScript3**: [github.com/BowlerHatLLC/vscode-nextgenas/tree/master/language-server](https://github.com/BowlerHatLLC/vscode-nextgenas/tree/master/language-server) +11. **Raku**: [github.com/bscan/RakuNavigator](https://github.com/bscan/RakuNavigator) -12. **Raku**: [github.com/bscan/RakuNavigator](https://github.com/bscan/RakuNavigator) +12. **Flux**: [github.com/influxdata/flux-lsp](https://github.com/influxdata/flux-lsp) -13. **Flux**: [github.com/influxdata/flux-lsp](https://github.com/influxdata/flux-lsp) +13. **SPARQL**: [github.com/stardog-union/stardog-language-servers/tree/master/packages/sparql-language-server](https://github.com/stardog-union/stardog-language-servers/tree/master/packages/sparql-language-server) -14. **SPARQL**: [github.com/stardog-union/stardog-language-servers/tree/master/packages/sparql-language-server](https://github.com/stardog-union/stardog-language-servers/tree/master/packages/sparql-language-server) +14. **Turtle**: [github.com/stardog-union/stardog-language-servers/tree/master/packages/turtle-language-server](https://github.com/stardog-union/stardog-language-servers/tree/master/packages/turtle-language-server) -15. **Turtle**: [github.com/stardog-union/stardog-language-servers/tree/master/packages/turtle-language-server](https://github.com/stardog-union/stardog-language-servers/tree/master/packages/turtle-language-server) +15. **Common Workflow Language (CWL)**: Rabix/Benten -16. **Common Workflow Language (CWL)**: Rabix/Benten +16. **Smalltalk/Pharo**: [github.com/badetitou/Pharo-LanguageServer](https://github.com/badetitou/Pharo-LanguageServer) -17. **Smalltalk/Pharo**: [github.com/badetitou/Pharo-LanguageServer](https://github.com/badetitou/Pharo-LanguageServer) +17. **DreamMaker**: [github.com/SpaceManiac/SpacemanDMM/tree/master/crates/dm-langserver](https://github.com/SpaceManiac/SpacemanDMM/tree/master/crates/dm-langserver) -18. **DreamMaker**: [github.com/SpaceManiac/SpacemanDMM/tree/master/crates/dm-langserver](https://github.com/SpaceManiac/SpacemanDMM/tree/master/crates/dm-langserver) +18. **Grain**: [github.com/grain-lang/grain](https://github.com/grain-lang/grain) -19. **Grain**: [github.com/grain-lang/grain](https://github.com/grain-lang/grain) +19. **V**: [github.com/vlang/v-analyzer](https://github.com/vlang/v-analyzer) -20. **V**: [github.com/vlang/v-analyzer](https://github.com/vlang/v-analyzer) +20. **TTCN-3**: [github.com/nokia/ntt](https://github.com/nokia/ntt) -21. **TTCN-3**: [github.com/nokia/ntt](https://github.com/nokia/ntt) +21. **Red**: [github.com/bitbegin/redlangserver](https://github.com/bitbegin/redlangserver) -22. **Red**: [github.com/bitbegin/redlangserver](https://github.com/bitbegin/redlangserver) +22. **Fennel**: [git.sr.ht/~xerool/fennel-ls](https://git.sr.ht/~xerool/fennel-ls) -23. **Fennel**: [git.sr.ht/~xerool/fennel-ls](https://git.sr.ht/~xerool/fennel-ls) +23. **Erg**: [github.com/erg-lang/erg/tree/main/crates/els](https://github.com/erg-lang/erg/tree/main/crates/els) -24. **Erg**: [github.com/erg-lang/erg/tree/main/crates/els](https://github.com/erg-lang/erg/tree/main/crates/els) +24. **Fuzion**: [github.com/tokiwa-software/fuzion-lsp-server](https://github.com/tokiwa-software/fuzion-lsp-server) -25. **Fuzion**: [github.com/tokiwa-software/fuzion-lsp-server](https://github.com/tokiwa-software/fuzion-lsp-server) +25. **Imandra Protocol Language**: [github.com/AestheticIntegration/ipl-vscode](https://github.com/AestheticIntegration/ipl-vscode) -26. **Imandra Protocol Language**: [github.com/AestheticIntegration/ipl-vscode](https://github.com/AestheticIntegration/ipl-vscode) +26. **MOCA**: [github.com/mrglassdanny/moca-language-server](https://github.com/mrglassdanny/moca-language-server) -27. **MOCA**: [github.com/mrglassdanny/moca-language-server](https://github.com/mrglassdanny/moca-language-server) +27. **openVALIDATION**: [github.com/openvalidation/ov-language-server](https://github.com/openvalidation/ov-language-server) -28. **openVALIDATION**: [github.com/openvalidation/ov-language-server](https://github.com/openvalidation/ov-language-server) +28. **Veryl**: [github.com/dalance/veryl/tree/master/crates/languageserver](https://github.com/dalance/veryl/tree/master/crates/languageserver) -29. **Veryl**: [github.com/dalance/veryl/tree/master/crates/languageserver](https://github.com/dalance/veryl/tree/master/crates/languageserver) +29. **Standard ML**: Millet -30. **Standard ML**: Millet - -31. **Systemtap**: Systemtap LSP +30. **Systemtap**: Systemtap LSP