From cc2976fc8461105bb7d6133d7c2fc1b645bf5959 Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Sun, 22 Sep 2024 22:59:37 +0800 Subject: [PATCH] Add svls LSP server. --- README.md | 2 ++ README.zh-CN.md | 2 ++ langserver/svls.json | 8 +++++ lsp-bridge.el | 6 +++- todo.md | 76 +++++++++++++++++++++----------------------- 5 files changed, 53 insertions(+), 41 deletions(-) create mode 100644 langserver/svls.json diff --git a/README.md b/README.md index 7ad807a5c6..cc58797faa 100644 --- a/README.md +++ b/README.md @@ -270,6 +270,7 @@ lsp-bridge provides support for more than two language servers for many language - `lsp-bridge-nix-lsp-server`: Nix language server, you can choose `rnix-lsp`, `nixd` or `nil` - `lsp-bridge-markdown-lsp-server`: Markdown language server, you can choose `vale-ls` or `marksman` - `lsp-bridge-lua-lsp-server`: Lua language server, you can choose `sumneko` or `lua-lsp` +- `lsp-bridge-verilog-lsp-server`: Verilog language server, you can choose `verible`, or `svls` ## Options @@ -446,6 +447,7 @@ If your language supports mixed multi-language servers, it is recommended to che | Typescript | [typescript](https://github.com/typescript-language-server/typescript-language-server) | | | Typst | [typst-lsp](https://github.com/nvarner/typst-lsp) | | | Verilog | [verible](https://github.com/chipsalliance/verible) | | +| | [svls](https://github.com/dalance/svls) | | | VHDL | [vhdl-tool](https://www.vhdltool.com) | | | Vim | [vim-language-server](https://github.com/iamcco/vim-language-server) | `npm install -g vim-language-server` | | Vue | [volar](https://github.com/johnsoncodehk/volar) | `npm install -g typescript @vue/language-server` | diff --git a/README.zh-CN.md b/README.zh-CN.md index 0aed868707..524b834049 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -265,6 +265,7 @@ lsp-bridge 针对许多语言都提供 2 个以上的语言服务器支持, - `lsp-bridge-nix-lsp-server`: Nix 语言的服务器, 可以选择 `rnix-lsp`, `nixd` 或者 `nil` - `lsp-bridge-markdown-lsp-server`: Markdown 语言的服务器, 可以选择 `vale-ls` 或者 `marksman` - `lsp-bridge-lua-lsp-server`: Lua 语言的服务器, 可以选择 `sumneko`, 或者 `lua-lsp` +- `lsp-bridge-verilog-lsp-server`: Verilog 语言的服务器, 可以选择 `verible`, 或者 `svls` ## 选项 @@ -441,6 +442,7 @@ lsp-bridge 针对许多语言都提供 2 个以上的语言服务器支持, | Typescript | [typescript](https://github.com/typescript-language-server/typescript-language-server) | | | Typst | [typst-lsp](https://github.com/nvarner/typst-lsp) | | | Verilog | [verible](https://github.com/chipsalliance/verible) | | +| | [svls](https://github.com/dalance/svls) | | | VHDL | [vhdl-tool](https://www.vhdltool.com) | | | Vim | [vim-language-server](https://github.com/iamcco/vim-language-server) | `npm install -g vim-language-server` | | Vue | [volar](https://github.com/johnsoncodehk/volar) | `npm install -g typescript @vue/language-server` | diff --git a/langserver/svls.json b/langserver/svls.json new file mode 100644 index 0000000000..3d8724da4b --- /dev/null +++ b/langserver/svls.json @@ -0,0 +1,8 @@ +{ + "name": "svls", + "languageId": "verilog", + "command": [ + "svls" + ], + "settings": {} +} diff --git a/lsp-bridge.el b/lsp-bridge.el index 0cabe72540..5e27632a46 100644 --- a/lsp-bridge.el +++ b/lsp-bridge.el @@ -504,6 +504,10 @@ Possible choices are basedpyright_ruff, pyright_ruff, pyright-background-analysi "Default LSP server for Lua, you can choose `sumneko' or `lua-lsp'" :type 'string) +(defcustom lsp-bridge-verilog-lsp-server "verible" + "Default LSP server for Verilog, you can choose `verible', `svls'" + :type 'string) + (defcustom lsp-bridge-use-wenls-in-org-mode nil "Use `wen' lsp server in org-mode, default is disable.") @@ -569,7 +573,7 @@ Possible choices are basedpyright_ruff, pyright_ruff, pyright-background-analysi (swift-mode . "swift-sourcekit") ((csharp-mode csharp-ts-mode) . lsp-bridge-csharp-lsp-server) (kotlin-mode . "kotlin-language-server") - (verilog-mode . "verible") + (verilog-mode . lsp-bridge-verilog-lsp-server) (vhdl-mode . "vhdl-tool") (svelte-mode . "svelteserver") (fsharp-mode . "fsautocomplete") diff --git a/todo.md b/todo.md index 2d543a2947..a7328e8f0f 100644 --- a/todo.md +++ b/todo.md @@ -4,78 +4,74 @@ 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. **Helm (Kubernetes)**: [github.com/mrjosh/helm-ls](https://github.com/mrjosh/helm-ls) +3. **Rego**: [github.com/StyraInc/regal](https://github.com/StyraInc/regal) -4. **SystemVerilog**: [github.com/dalance/svls](https://github.com/dalance/svls) +4. **Apache Camel**: [github.com/camel-tooling/camel-language-server](https://github.com/camel-tooling/camel-language-server) -5. **Rego**: [github.com/StyraInc/regal](https://github.com/StyraInc/regal) +5. **Cucumber (Gherkin)**: cucumber/language-server -6. **Apache Camel**: [github.com/camel-tooling/camel-language-server](https://github.com/camel-tooling/camel-language-server) +6. **Snyk**: [github.com/snyk/snyk-ls](https://github.com/snyk/snyk-ls) -7. **Cucumber (Gherkin)**: cucumber/language-server +7. **LanguageTool**: [github.com/valentjn/ltex-ls](https://github.com/valentjn/ltex-ls) -8. **Snyk**: [github.com/snyk/snyk-ls](https://github.com/snyk/snyk-ls) +8. **JS/TS + PHP + Python + Java**: [github.com/SonarSource/sonarlint-language-server](https://github.com/SonarSource/sonarlint-language-server) -9. **LanguageTool**: [github.com/valentjn/ltex-ls](https://github.com/valentjn/ltex-ls) +9. **Gauge**: [github.com/getgauge/gauge](https://github.com/getgauge/gauge) -10. **JS/TS + PHP + Python + Java**: [github.com/SonarSource/sonarlint-language-server](https://github.com/SonarSource/sonarlint-language-server) +10. **Coq**: coq-lsp -11. **Gauge**: [github.com/getgauge/gauge](https://github.com/getgauge/gauge) +11. **Delphi**: Embarcadero (Proprietary - DelphiLSP) -12. **Coq**: coq-lsp +12. **BibTeX**: [github.com/oncomouse/citation-langserver](https://github.com/oncomouse/citation-langserver) -13. **Delphi**: Embarcadero (Proprietary - DelphiLSP) +13. **JSON-LD**: [github.com/ajuvercr/jsonld-lsp](https://github.com/ajuvercr/jsonld-lsp) -14. **BibTeX**: [github.com/oncomouse/citation-langserver](https://github.com/oncomouse/citation-langserver) +14. **Ballerina**: [github.com/ballerina-platform/ballerina-lang/tree/master/language-server](https://github.com/ballerina-platform/ballerina-lang/tree/master/language-server) -15. **JSON-LD**: [github.com/ajuvercr/jsonld-lsp](https://github.com/ajuvercr/jsonld-lsp) +15. **Langium**: [github.com/langium/langium](https://github.com/langium/langium) -16. **Ballerina**: [github.com/ballerina-platform/ballerina-lang/tree/master/language-server](https://github.com/ballerina-platform/ballerina-lang/tree/master/language-server) +16. **Odin**: [github.com/DanielGavin/ols](https://github.com/DanielGavin/ols) -17. **Langium**: [github.com/langium/langium](https://github.com/langium/langium) +17. **Xtext** (Any Language): [github.com/eclipse/xtext-core](https://github.com/eclipse/xtext-core) -18. **Odin**: [github.com/DanielGavin/ols](https://github.com/DanielGavin/ols) +18. **ActionScript3**: [github.com/BowlerHatLLC/vscode-nextgenas/tree/master/language-server](https://github.com/BowlerHatLLC/vscode-nextgenas/tree/master/language-server) -19. **Xtext** (Any Language): [github.com/eclipse/xtext-core](https://github.com/eclipse/xtext-core) +19. **Raku**: [github.com/bscan/RakuNavigator](https://github.com/bscan/RakuNavigator) -20. **ActionScript3**: [github.com/BowlerHatLLC/vscode-nextgenas/tree/master/language-server](https://github.com/BowlerHatLLC/vscode-nextgenas/tree/master/language-server) +20. **Flux**: [github.com/influxdata/flux-lsp](https://github.com/influxdata/flux-lsp) -21. **Raku**: [github.com/bscan/RakuNavigator](https://github.com/bscan/RakuNavigator) +21. **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) -22. **Flux**: [github.com/influxdata/flux-lsp](https://github.com/influxdata/flux-lsp) +22. **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) -23. **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) +23. **Common Workflow Language (CWL)**: Rabix/Benten -24. **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) +24. **Smalltalk/Pharo**: [github.com/badetitou/Pharo-LanguageServer](https://github.com/badetitou/Pharo-LanguageServer) -25. **Common Workflow Language (CWL)**: Rabix/Benten +25. **DreamMaker**: [github.com/SpaceManiac/SpacemanDMM/tree/master/crates/dm-langserver](https://github.com/SpaceManiac/SpacemanDMM/tree/master/crates/dm-langserver) -26. **Smalltalk/Pharo**: [github.com/badetitou/Pharo-LanguageServer](https://github.com/badetitou/Pharo-LanguageServer) +26. **Grain**: [github.com/grain-lang/grain](https://github.com/grain-lang/grain) -27. **DreamMaker**: [github.com/SpaceManiac/SpacemanDMM/tree/master/crates/dm-langserver](https://github.com/SpaceManiac/SpacemanDMM/tree/master/crates/dm-langserver) +27. **V**: [github.com/vlang/v-analyzer](https://github.com/vlang/v-analyzer) -28. **Grain**: [github.com/grain-lang/grain](https://github.com/grain-lang/grain) +28. **TTCN-3**: [github.com/nokia/ntt](https://github.com/nokia/ntt) -29. **V**: [github.com/vlang/v-analyzer](https://github.com/vlang/v-analyzer) +29. **Red**: [github.com/bitbegin/redlangserver](https://github.com/bitbegin/redlangserver) -30. **TTCN-3**: [github.com/nokia/ntt](https://github.com/nokia/ntt) +30. **Fennel**: [git.sr.ht/~xerool/fennel-ls](https://git.sr.ht/~xerool/fennel-ls) -31. **Red**: [github.com/bitbegin/redlangserver](https://github.com/bitbegin/redlangserver) +31. **Erg**: [github.com/erg-lang/erg/tree/main/crates/els](https://github.com/erg-lang/erg/tree/main/crates/els) -32. **Fennel**: [git.sr.ht/~xerool/fennel-ls](https://git.sr.ht/~xerool/fennel-ls) +32. **Fuzion**: [github.com/tokiwa-software/fuzion-lsp-server](https://github.com/tokiwa-software/fuzion-lsp-server) -33. **Erg**: [github.com/erg-lang/erg/tree/main/crates/els](https://github.com/erg-lang/erg/tree/main/crates/els) +33. **Imandra Protocol Language**: [github.com/AestheticIntegration/ipl-vscode](https://github.com/AestheticIntegration/ipl-vscode) -34. **Fuzion**: [github.com/tokiwa-software/fuzion-lsp-server](https://github.com/tokiwa-software/fuzion-lsp-server) +34. **MOCA**: [github.com/mrglassdanny/moca-language-server](https://github.com/mrglassdanny/moca-language-server) -35. **Imandra Protocol Language**: [github.com/AestheticIntegration/ipl-vscode](https://github.com/AestheticIntegration/ipl-vscode) +35. **openVALIDATION**: [github.com/openvalidation/ov-language-server](https://github.com/openvalidation/ov-language-server) -36. **MOCA**: [github.com/mrglassdanny/moca-language-server](https://github.com/mrglassdanny/moca-language-server) +36. **Veryl**: [github.com/dalance/veryl/tree/master/crates/languageserver](https://github.com/dalance/veryl/tree/master/crates/languageserver) -37. **openVALIDATION**: [github.com/openvalidation/ov-language-server](https://github.com/openvalidation/ov-language-server) +37. **Standard ML**: Millet -38. **Veryl**: [github.com/dalance/veryl/tree/master/crates/languageserver](https://github.com/dalance/veryl/tree/master/crates/languageserver) - -39. **Standard ML**: Millet - -40. **Systemtap**: Systemtap LSP +38. **Systemtap**: Systemtap LSP