File tree Expand file tree Collapse file tree 4 files changed +9
-1
lines changed
Expand file tree Collapse file tree 4 files changed +9
-1
lines changed Original file line number Diff line number Diff 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 |
Original file line number Diff line number Diff 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. |
Original file line number Diff line number Diff line change 151151-- 判断rust启用环境
152152-- 先在 MacOS x86_64 下调通
153153function 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
Original file line number Diff line number Diff line change @@ -237,6 +237,9 @@ endif
237237if ! exists (" g:easycomplete_pum_fix_width" )
238238 let g: easycomplete_pum_fix_width = 0
239239endif
240+ if ! exists (" g:easycomplete_rust_enable" )
241+ let g: easycomplete_rust_enable = 1
242+ endif
240243if ! exists (" g:easycomplete_lsp_server" )
241244 let g: easycomplete_lsp_server = {}
242245endif
You can’t perform that action at this time.
0 commit comments