diff --git a/README.md b/README.md index e0bb392ff1..15e3822d23 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/README.zh-CN.md b/README.zh-CN.md index cf3808abf7..77a8181fbb 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -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 会根据输出目录路径来提供补全 ## 远程使用