Skip to content

Commit

Permalink
Add camells LSP server.
Browse files Browse the repository at this point in the history
  • Loading branch information
manateelazycat committed Sep 22, 2024
1 parent e28dac1 commit ae6b470
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 44 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ lsp-bridge provides support for more than two language servers for many language
- `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`
- `lsp-bridge-xml-lsp-server`: XML language server, you can choose `lemminx`, or `camells`

## Options

Expand Down Expand Up @@ -447,13 +448,14 @@ 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) | |
| Verilog | [verible](https://github.com/chipsalliance/verible) | |
| | [svls](https://github.com/dalance/svls) | |
| 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) | |
| 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` |
| Wxml | [wxml-language-server](https://github.com/chemzqm/wxml-languageserver) | |
| XML | [lemminx](https://github.com/eclipse/lemminx) | |
| XML | [lemminx](https://github.com/eclipse/lemminx) | `lsp-bridge-xml-lsp-server` set to `lemminx` |
| | [camells](https://github.com/camel-tooling/camel-language-server) | `lsp-bridge-xml-lsp-server` set to `camells` |
| 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) |
Expand Down
8 changes: 5 additions & 3 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ lsp-bridge 针对许多语言都提供 2 个以上的语言服务器支持,
- `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`
- `lsp-bridge-xml-lsp-server`: XML 语言的服务器, 可以选择 `lemminx`, 或者 `camells`

## 选项

Expand Down Expand Up @@ -442,13 +443,14 @@ 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) | |
| Verilog | [verible](https://github.com/chipsalliance/verible) | |
| | [svls](https://github.com/dalance/svls) | |
| 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) | |
| 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` |
| Wxml | [wxml-language-server](https://github.com/chemzqm/wxml-languageserver) | |
| XML | [lemminx](https://github.com/eclipse/lemminx) | |
| XML | [lemminx](https://github.com/eclipse/lemminx) | `lsp-bridge-xml-lsp-server` 设置为 `lemminx` |
| | [camells](https://github.com/camel-tooling/camel-language-server/) | `lsp-bridge-xml-lsp-server` 设置为 `camells` |
| 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) |
Expand Down
8 changes: 8 additions & 0 deletions langserver/camells.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "camells",
"languageId": "xml",
"command": [
"camells"
],
"settings": {}
}
6 changes: 5 additions & 1 deletion lsp-bridge.el
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,10 @@ Possible choices are basedpyright_ruff, pyright_ruff, pyright-background-analysi
"Default LSP server for Verilog, you can choose `verible', `svls'"
:type 'string)

(defcustom lsp-bridge-xml-lsp-server "lemminx"
"Default LSP server for XML, you can choose `lemminx', `camells'"
:type 'string)

(defcustom lsp-bridge-use-wenls-in-org-mode nil
"Use `wen' lsp server in org-mode, default is disable.")

Expand Down Expand Up @@ -585,7 +589,7 @@ Possible choices are basedpyright_ruff, pyright_ruff, pyright-background-analysi
(ada-mode . "ada-language-server")
(rego-mode . "regal")
(puppet-mode . "puppet-languageserver")
(nxml-mode . "lemminx")
(nxml-mode . lsp-bridge-xml-lsp-server)
(robot-mode . "vscode-rf-language-server")
(vimrc-mode . "vim-language-server")
(terraform-mode . "terraform-ls")
Expand Down
Loading

0 comments on commit ae6b470

Please sign in to comment.