Skip to content

Commit

Permalink
Add Yang language support.
Browse files Browse the repository at this point in the history
  • Loading branch information
manateelazycat committed Jul 13, 2024
1 parent f47cf14 commit 72d731e
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,7 @@ If your language supports mixed multi-language servers, it is recommended to che
| VHDL | [vhdl-tool](https://www.vhdltool.com) | |
| Vue | [volar](https://github.com/johnsoncodehk/volar) | `npm install -g typescript @vue/language-server` |
| Wxml | [wxml-language-server](https://github.com/chemzqm/wxml-languageserver) | |
| Yang | [yang-ls](https://github.com/TypeFox/yang-lsp) | |
| Yaml | [yaml-language-server](https://github.com/redhat-developer/yaml-language-server) | `npm install -g yaml-language-server` |
| Zig | [zls](https://github.com/zigtools/zls) | Execute `zls config` to generate configuration for `zls`. see [Configuration Options](https://github.com/zigtools/zls#configuration-options) |
| Solidity | [solidity-language-server](https://github.com/NomicFoundation/hardhat-vscode) | `npm install -g @nomicfoundation/solidity-language-server`. see [Solidity Language Server](https://github.com/NomicFoundation/hardhat-vscode/blob/development/server/README.md) |
Expand Down
1 change: 1 addition & 0 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,7 @@ lsp-bridge 针对许多语言都提供 2 个以上的语言服务器支持,
| VHDL | [vhdl-tool](https://www.vhdltool.com) | |
| Vue | [volar](https://github.com/johnsoncodehk/volar) | `npm install -g typescript @vue/language-server` |
| Wxml | [wxml-language-server](https://github.com/chemzqm/wxml-languageserver) | |
| Yang | [yang-ls](https://github.com/TypeFox/yang-lsp) | |
| Yaml | [yaml-language-server](https://github.com/redhat-developer/yaml-language-server) | `npm install -g yaml-language-server` |
| Zig | [zls](https://github.com/zigtools/zls) | 运行 `zls config` 来生成 zls 的配置。 参考 [Configuration Options](https://github.com/zigtools/zls#configuration-options) |
| Solidity | [solidity-language-server](https://github.com/NomicFoundation/hardhat-vscode) | `npm install -g @nomicfoundation/solidity-language-server`, 参考 [Solidity Language Server](https://github.com/NomicFoundation/hardhat-vscode/blob/development/server/README.md) | | `npm install -g emmet-ls` |
Expand Down
8 changes: 8 additions & 0 deletions langserver/yang-lsp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "yang-lsp",
"languageId": "yang",
"command": [
"yang-lsp"
],
"settings": {}
}
3 changes: 3 additions & 0 deletions lsp-bridge.el
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,7 @@ Possible choices are basedpyright_ruff, pyright_ruff, pyright-background-analysi
(solidity-mode . "solidity")
(gleam-ts-mode . "gleam")
(ada-mode . "ada-language-server")
(yang-mode . "yang-lsp")
(mint-mode . "mint-ls")
(purescript-mode . "purescript-language-server")
(perl-mode . "perl-language-server")
Expand Down Expand Up @@ -681,6 +682,7 @@ Possible choices are basedpyright_ruff, pyright_ruff, pyright-background-analysi
solidity-mode-hook
gleam-ts-mode-hook
ada-mode-hook
yang-mode-hook
mint-mode-hook
purescript-mode-hook
perl-mode-hook
Expand Down Expand Up @@ -741,6 +743,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
(yang-mode . lsp-bridge-indent-two-level) ; Yang
(mint-mode . lsp-bridge-indent-two-level) ; Mint
(purescript-mode . purescript-indent-offset) ; PureScript
(futhark-mode . futhark-indent-level) ; Futhark
Expand Down
2 changes: 0 additions & 2 deletions todo.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,4 @@ Below LSP server haven't supported, PR are welcome. ;)
- [github.com/microclimate-devops/xml-language-server](https://github.com/microclimate-devops/xml-language-server)
- [github.com/angelozerr/lsp4xml](https://github.com/angelozerr/lsp4xml)

54. **YANG**: [github.com/yang-tools/yang-lsp](https://github.com/yang-tools/yang-lsp)

55. **Xtext** (Any Language): [github.com/eclipse/xtext-core](https://github.com/eclipse/xtext-core)

0 comments on commit 72d731e

Please sign in to comment.