Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
manateelazycat committed Nov 14, 2023
1 parent 7a09dd4 commit 2ca4487
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ If your language supports mixed multi-language servers, it is recommended to che
| [ansible-language-server](https://github.com/ansible/ansible-language-server) | Ansible | Ansible uses YAML as source code, you’ll need to customize `lsp-bridge-get-single-lang-server-by-project` to return "ansible-language-server". |
| [astro](https://github.com/withastro/language-tools/tree/main/packages/language-server) | Astro | `npm i -g @astrojs/language-server` |
| [qmlls](https://github.com/qt/qtdeclarative/tree/dev/tools/qmlls) | QML | The `qmlls` binary should be part of the normal Qt packages since Qt 6.3.0 Ensure that the directory of `qmlls` binary file is in PATH |
| [kotlin-language-server](https://github.com/fwcd/kotlin-language-server) | Kotlin | |
| [kotlin-language-server](https://github.com/fwcd/kotlin-language-server) | Kotlin | If you want Inlay Hints feature, you need build with source code to return Inlay Hint information |
| [vhdl-tool](https://www.vhdltool.com) | VHDL | |
| [julials](https://github.com/julia-vscode/LanguageServer.jl) | Julia | |
| [typst-lsp](https://github.com/nvarner/typst-lsp) | Typst | |
Expand Down
10 changes: 5 additions & 5 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ lsp-bridge 开箱即用, 安装好语言对应的 [LSP 服务器](https://gith
1. 在远程服务器安装 lsp-bridge 和相应的 LSP Server
2. 启动 lsp-bridge: `python3 lsp-bridge/lsp_bridge.py`
3.`lsp-bridge-open-remote-file`命令打开文件, 输入用户名、 IP、 SSH 端口(默认 22) 和路径, 例如`user@ip:[ssh_port]:/path/file`
4. 启用`lsp-bridge-enable-with-tramp`选项可以直接打开 tramp 文件, 并用 lsp-bridge 的高效算法代替 tramp,实现流畅补全。如果 tramp 中 host 是在 `~/.ssh/config` 定义的,那么 lsp-birdge 可以同步下列选项用于远程连接:
- HostName(必须是 ip 形式的 hostname,domain 形式的 hostname 会导致问题)
4. 启用`lsp-bridge-enable-with-tramp`选项可以直接打开 tramp 文件, 并用 lsp-bridge 的高效算法代替 tramp, 实现流畅补全。 如果 tramp 中 host 是在 `~/.ssh/config` 定义的, 那么 lsp-birdge 可以同步下列选项用于远程连接:
- HostName(必须是 ip 形式的 hostname, domain 形式的 hostname 会导致问题)
- User
- Port
- GSSAPIAuthentication
- ProxyCommand(当前只支持用 ProxyCommand 选项,不支持 ProxyJump 选项)
- ProxyCommand(当前只支持用 ProxyCommand 选项, 不支持 ProxyJump 选项)

远程补全原理:

Expand All @@ -89,7 +89,7 @@ lsp-bridge 开箱即用, 安装好语言对应的 [LSP 服务器](https://gith
1. 若补全菜单未显示, 检查远程服务器的`lsp_bridge.py`输出, 可能是 LSP Server 未完全安装
2. lsp-bridge 会用`~/.ssh`的第一个 *.pub 文件作为登录凭证。 如果公钥登录失败, 会要求输入密码。 lsp-bridge 不会存储密码, 建议用公钥登录以避免重复输入密码
3. 你需要在远程服务器完整的下载整个 lsp-bridge git 仓库, 并切换到 lsp-bridge 目录来启动 `lsp_bridge.py``lsp_bridge.py` 需要其他文件来保证正常工作, 不能只把 `lsp_bridge.py` 文件拷贝到其他目录来启动
4. 如果 tramp 文件出现 lsp-bridge 连接错误,可以执行 `lsp-bridge-tramp-show-hostnames` 函数,然后检查输出的 host 配置选项是否符合预期
4. 如果 tramp 文件出现 lsp-bridge 连接错误, 可以执行 `lsp-bridge-tramp-show-hostnames` 函数, 然后检查输出的 host 配置选项是否符合预期

## 按键

Expand Down Expand Up @@ -363,7 +363,7 @@ lsp-bridge 每种语言的服务器配置存储在 [lsp-bridge/langserver](https
| [ansible-language-server](https://github.com/ansible/ansible-language-server) | Ansible | Ansible 使用 YAML 来编程, 你需要定制选项 `lsp-bridge-get-single-lang-server-by-project` 当工程是 Ansible 项目的路径时, 返回 "ansible-language-server" 字符串 |
| [astro](https://github.com/withastro/language-tools/tree/main/packages/language-server) | Astro | `npm i -g @astrojs/language-server` |
| [qmlls](<(https://github.com/qt/qtdeclarative/tree/dev/tools/qmlls)>) | QML | QT 6.3.0 之后的版本自带 qmlls, 将 qmlls 所在目录加到 PATH 中 |
| [kotlin-language-server](https://github.com/fwcd/kotlin-language-server) | Kotlin | |
| [kotlin-language-server](https://github.com/fwcd/kotlin-language-server) | Kotlin | Inlay Hint 功能需要自己编译源码的版本才能返回 Inlay Hint 信息 |
| [vhdl-tool](https://www.vhdltool.com) | VHDL | |
| [julials](https://github.com/julia-vscode/LanguageServer.jl) | Julia | |
| [typst-lsp](https://github.com/nvarner/typst-lsp) | Typst | |
Expand Down

0 comments on commit 2ca4487

Please sign in to comment.