Skip to content

Commit

Permalink
Adjust readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
manateelazycat committed Jul 21, 2023
1 parent 4758674 commit b2fb0d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ It should be noted that lsp-bridge has three scanning modes:

1. When the `.git` directory is detected (determined by the command `git rev-parse --is-inside-work-tree`), lsp-bridge will scan the entire directory to provide completion.
2. When the `.git` directory is not detected, lsp-bridge only provides single-file completion for the opened file.
3. Custom `lsp-bridge-get-project-path-by-filepath` function, where the input parameter is the path string of the opened file and the output parameter is the project directory path. Lsp-bridge will provide completion based on the output directory path.
3. Through the `lsp-bridge-get-project-path-by-filepath` function customized by setq, the input parameter is the path string of the opened file, the output parameter is the project directory path, lsp-bridge will provide completion based on the output directory path.

## Remote Usage

Expand Down
2 changes: 1 addition & 1 deletion README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ lsp-bridge 开箱即用, 安装好语言对应的 [LSP 服务器](https://gith

1. 检测到 `.git` 目录时(通过命令 `git rev-parse --is-inside-work-tree` 来判断), lsp-bridge 会扫描整个目录文件来提供补全
2. 没有检测到 `.git` 目录时, lsp-bridge 只会对打开的文件提供单文件补全
3. 自定义 `lsp-bridge-get-project-path-by-filepath` 函数, 输入参数是打开文件的路径字符串, 输出参数是项目目录路径, lsp-bridge 会根据输出目录路径来提供补全
3. 通过 setq 自定义的 `lsp-bridge-get-project-path-by-filepath` 函数, 输入参数是打开文件的路径字符串, 输出参数是项目目录路径, lsp-bridge 会根据输出目录路径来提供补全

## 远程使用

Expand Down

0 comments on commit b2fb0d3

Please sign in to comment.