Skip to content

Commit

Permalink
Remove pypy from README, python 3.11 is fast enough, pypy still suppo…
Browse files Browse the repository at this point in the history
…rt in code.
  • Loading branch information
manateelazycat committed Aug 6, 2023
1 parent d4529f6 commit bb9f064
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@ Using Python multithreading techniques, lsp-bridge builds a high-speed cache bet
## Installation

1. Install Emacs 28 or higher version
2. Install Python dependencies: epc, orjson, sexpdata, six, paramiko, please choose one of the following methods to install Python dependencies
- PyPy
`pypy3 -m pip install epc sexpdata six paramiko`
- CPython
`pip3 install epc orjson sexpdata six paramiko` (orjson is optional, orjson is based on Rust, providing faster JSON parsing performance)
2. Install Python dependencies: `pip3 install epc orjson sexpdata six paramiko` (orjson is optional, orjson is based on Rust, providing faster JSON parsing performance)
3. Install Elisp dependencies:

- [markdown-mode](https://github.com/jrblevin/markdown-mode)
Expand Down Expand Up @@ -61,7 +57,7 @@ It should be noted that lsp-bridge has three scanning modes:
`lsp-bridge` can also provide code syntax completion for files on a remote server, similar to VSCode. Providing remote code completion is very useful when dealing with large and complex software that requires high resource demands or has complex environment configuration. The following are the steps to configure remote code completion:

1. Install `lsp-bridge` and the corresponding LSP server on the remote server.
2. Start the lsp-bridge service: `pypy3 lsp-bridge/lsp_bridge.py` (If you are using CPython, please use `python3 lsp-bridge/lsp_bridge.py`)
2. Start the lsp-bridge service: `python3 lsp-bridge/lsp_bridge.py`
3. Use the command `lsp-bridge-open-remote-file` to open the remote file and enter the username, server IP, ssh port (default: 22), and file path, such as `user@ip:[ssh_port]/path/file`.

Once the remote file is opened, `lsp-bridge` will automatically display the code completion menu. The remote completion principle of `lsp-bridge` is as follows:
Expand Down
8 changes: 2 additions & 6 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@ lsp-bridge 使用 Python 多线程技术在 Emacs 和 LSP 服务器之间构建
## 安装

1. 安装 Emacs 28 及以上版本
2. 安装 Python 依赖: epc, orjson, sexpdata, six, paramiko, 请选择下面其中一种方式安装 Python 依赖
- PyPy
`pypy3 -m pip install epc sexpdata six paramiko`
- CPython
`pip3 install epc orjson sexpdata six paramiko` (orjson 是可选的, orjson 基于 Rust, 提供更快的 JSON 解析性能)
2. 安装 Python 依赖: `pip3 install epc orjson sexpdata six paramiko` (orjson 是可选的, orjson 基于 Rust, 提供更快的 JSON 解析性能)
3. 安装 Elisp 依赖:

- [markdown-mode](https://github.com/jrblevin/markdown-mode)
Expand Down Expand Up @@ -60,7 +56,7 @@ lsp-bridge 开箱即用, 安装好语言对应的 [LSP 服务器](https://gith
lsp-bridge 也可以对远程服务器的文件进行代码语法补全, 效果与 VSCode 类似。 在处理要求较高资源或运行环境配置较为复杂的大型复杂软件时, 提供远程代码补全功能将非常有用。 以下是配置远程代码补全的步骤:

1. 在远程服务器上安装 lsp-bridge 和对应的 LSP Server
2. 启动 lsp-bridge 服务: `pypy3 lsp-bridge/lsp_bridge.py` (如果你用 CPython, 请使用 `python3 lsp-bridge/lsp_bridge.py`)
2. 启动 lsp-bridge 服务: `python3 lsp-bridge/lsp_bridge.py`
3. 使用命令`lsp-bridge-open-remote-file`打开远程文件, 输入用户名、 服务器 IP、 SSH 端口(默认为: 22) 和文件路径, 比如`user@ip:[ssh_port]/path/file`

一旦打开远程文件, `lsp-bridge`将自动显示代码补全菜单。 `lsp-bridge` 远程补全的原理如下:
Expand Down

0 comments on commit bb9f064

Please sign in to comment.