Skip to content

Commit 5a3ec12

Browse files
committed
add doc
1 parent 2c3db98 commit 5a3ec12

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

README-cn.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,10 @@ let g:easycomplete_cmdline = 1
184184

185185
| 全局变量 | 默认值 | 说明 |
186186
|--------------------------------------|---------------|-------------------------------------------------------------|
187+
| `g:easycomplete_rust_enable` | 1 |`MacOS_x86`平台下开启 rust 高性能模式 |
187188
| `g:easycomplete_nerd_font` | 0 | 使用 nerdfont |
188189
| `g:easycomplete_menu_skin` | `{}` | 菜单图标配置. |
189-
| `g:easycomplete_kind_icons` | `{}` | Kind 图标. |
190+
| `g:easycomplete_kind_icons` | `{}` | Kind 图标. |
190191
| `g:easycomplete_sign_text` | `{}` | 提示图标配置. |
191192
| `g:easycomplete_lsp_type_font` | ... | lsp 图标配置 |
192193
| `g:easycomplete_lsp_server` | `{}` | 给特定的源使用 不同的 lsp server |

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ Global configurations:
184184

185185
| Global Configure | Default | Description |
186186
|--------------------------------------|---------------|---------------------------------------------------------------|
187+
| `g:easycomplete_rust_enable` | 1 | enable the rust high-performance mode on `MacOS_x86` |
187188
| `g:easycomplete_nerd_font` | 0 | Using nerdfont for lsp icons |
188189
| `g:easycomplete_menu_skin` | `{}` | Menu skin. |
189190
| `g:easycomplete_kind_icons` | `{}` | Kind icons. |

lua/easycomplete/util.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ end
151151
-- 判断rust启用环境
152152
-- 先在 MacOS x86_64 下调通
153153
function util.rust_ready()
154+
if vim.g.easycomplete_rust_enable == 0 then
155+
return false
156+
end
154157
if global_rust_ready == true then
155158
return true
156159
elseif global_rust_ready == false then

plugin/easycomplete.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,9 @@ endif
237237
if !exists("g:easycomplete_pum_fix_width")
238238
let g:easycomplete_pum_fix_width = 0
239239
endif
240+
if !exists("g:easycomplete_rust_enable")
241+
let g:easycomplete_rust_enable = 1
242+
endif
240243
if !exists("g:easycomplete_lsp_server")
241244
let g:easycomplete_lsp_server = {}
242245
endif

0 commit comments

Comments
 (0)