Skip to content

Commit

Permalink
Add v-analyzer LSP server.
Browse files Browse the repository at this point in the history
  • Loading branch information
manateelazycat committed Sep 22, 2024
1 parent 0aa36e4 commit a9e324d
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 16 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ If your language supports mixed multi-language servers, it is recommended to che
| Terraform | [terraform-ls](https://github.com/hashicorp/terraform-ls) | |
| Typescript | [typescript](https://github.com/typescript-language-server/typescript-language-server) | |
| Typst | [typst-lsp](https://github.com/nvarner/typst-lsp) | |
| V | [v-analyzer](https://github.com/vlang/vscode-vlang) | |
| Verilog | [verible](https://github.com/chipsalliance/verible) | `lsp-bridge-verilog-lsp-server` set to `verible` |
| | [svls](https://github.com/dalance/svls) | `lsp-bridge-verilog-lsp-server` set to `svls` |
| VHDL | [vhdl-tool](https://www.vhdltool.com) | |
Expand Down
1 change: 1 addition & 0 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,7 @@ lsp-bridge 针对许多语言都提供 2 个以上的语言服务器支持,
| Terraform | [terraform-ls](https://github.com/hashicorp/terraform-ls) | |
| Typescript | [typescript](https://github.com/typescript-language-server/typescript-language-server) | |
| Typst | [typst-lsp](https://github.com/nvarner/typst-lsp) | |
| V | [v-analyzer](https://github.com/vlang/vscode-vlang) | |
| Verilog | [verible](https://github.com/chipsalliance/verible) | `lsp-bridge-verilog-lsp-server` 设置为 `verible` |
| | [svls](https://github.com/dalance/svls) | `lsp-bridge-verilog-lsp-server` 设置为 `svls` |
| VHDL | [vhdl-tool](https://www.vhdltool.com) | |
Expand Down
8 changes: 8 additions & 0 deletions langserver/v-analyzer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "v-analyzer",
"languageId": "v",
"command": [
"v-analyzer"
],
"settings": {}
}
3 changes: 3 additions & 0 deletions lsp-bridge.el
Original file line number Diff line number Diff line change
Expand Up @@ -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")
(v-mode . "v-analyzer")
(cwl-mode . "benten")
(odin-mode . "ols")
(ballerina-mode . "ballerina-lang-server")
Expand Down Expand Up @@ -710,6 +711,7 @@ Possible choices are basedpyright_ruff, pyright_ruff, pyright-background-analysi
solidity-mode-hook
gleam-ts-mode-hook
ada-mode-hook
v-mode-hook
cwl-mode-hook
odin-mode-hook
ballerina-mode-hook
Expand Down Expand Up @@ -787,6 +789,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
(v-mode . lsp-bridge-indent-four-level) ; V
(cwl-mode . lsp-bridge-indent-four-level) ; Common Workflow
(odin-mode . lsp-bridge-indent-eight-level) ; Odin
(ballerina-mode . ballerina-indent-offset) ; Ballerina
Expand Down
30 changes: 14 additions & 16 deletions todo.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,32 +20,30 @@ Below LSP server haven't supported, PR are welcome. ;)

10. **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)(Emacs haven't mode to support Stardog language)

11. **Smalltalk/Pharo**: [github.com/badetitou/Pharo-LanguageServer](https://github.com/badetitou/Pharo-LanguageServer)
11. **Smalltalk/Pharo**: [github.com/badetitou/Pharo-LanguageServer](https://github.com/badetitou/Pharo-LanguageServer) (Emacs haven't mode to support pharo mode)

12. **DreamMaker**: [github.com/SpaceManiac/SpacemanDMM/tree/master/crates/dm-langserver](https://github.com/SpaceManiac/SpacemanDMM/tree/master/crates/dm-langserver)
12. **DreamMaker**: [github.com/SpaceManiac/SpacemanDMM/tree/master/crates/dm-langserver](https://github.com/SpaceManiac/SpacemanDMM/tree/master/crates/dm-langserver) (Emacs haven't mode to support DreamMaker)

13. **Grain**: [github.com/grain-lang/grain](https://github.com/grain-lang/grain)
13. **Grain**: [github.com/grain-lang/grain](https://github.com/grain-lang/grain) (Emacs haven't mode to support grain language)

14. **V**: [github.com/vlang/v-analyzer](https://github.com/vlang/v-analyzer)
14. **TTCN-3**: [github.com/nokia/ntt](https://github.com/nokia/ntt)

15. **TTCN-3**: [github.com/nokia/ntt](https://github.com/nokia/ntt)
15. **Red**: [github.com/bitbegin/redlangserver](https://github.com/bitbegin/redlangserver)

16. **Red**: [github.com/bitbegin/redlangserver](https://github.com/bitbegin/redlangserver)
16. **Fennel**: [git.sr.ht/~xerool/fennel-ls](https://git.sr.ht/~xerool/fennel-ls)

17. **Fennel**: [git.sr.ht/~xerool/fennel-ls](https://git.sr.ht/~xerool/fennel-ls)
17. **Erg**: [github.com/erg-lang/erg/tree/main/crates/els](https://github.com/erg-lang/erg/tree/main/crates/els)

18. **Erg**: [github.com/erg-lang/erg/tree/main/crates/els](https://github.com/erg-lang/erg/tree/main/crates/els)
18. **Fuzion**: [github.com/tokiwa-software/fuzion-lsp-server](https://github.com/tokiwa-software/fuzion-lsp-server)

19. **Fuzion**: [github.com/tokiwa-software/fuzion-lsp-server](https://github.com/tokiwa-software/fuzion-lsp-server)
19. **Imandra Protocol Language**: [github.com/AestheticIntegration/ipl-vscode](https://github.com/AestheticIntegration/ipl-vscode)

20. **Imandra Protocol Language**: [github.com/AestheticIntegration/ipl-vscode](https://github.com/AestheticIntegration/ipl-vscode)
20. **MOCA**: [github.com/mrglassdanny/moca-language-server](https://github.com/mrglassdanny/moca-language-server)

21. **MOCA**: [github.com/mrglassdanny/moca-language-server](https://github.com/mrglassdanny/moca-language-server)
21. **openVALIDATION**: [github.com/openvalidation/ov-language-server](https://github.com/openvalidation/ov-language-server)

22. **openVALIDATION**: [github.com/openvalidation/ov-language-server](https://github.com/openvalidation/ov-language-server)
22. **Veryl**: [github.com/dalance/veryl/tree/master/crates/languageserver](https://github.com/dalance/veryl/tree/master/crates/languageserver)

23. **Veryl**: [github.com/dalance/veryl/tree/master/crates/languageserver](https://github.com/dalance/veryl/tree/master/crates/languageserver)
23. **Standard ML**: Millet

24. **Standard ML**: Millet

25. **Systemtap**: Systemtap LSP
24. **Systemtap**: Systemtap LSP

0 comments on commit a9e324d

Please sign in to comment.