Skip to content

Commit 3e1d83c

Browse files
committed
bugfix
1 parent 95e9f72 commit 3e1d83c

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

README-cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ require("easycomplete").setup({
193193
| `g:easycomplete_ghost_text` | 1 | 幽灵文本 |
194194
| `g:easycomplete_pum_maxheight` | 20 | 补全窗口最大高度 |
195195
| `g:easycomplete_pum_format` | `["abbr", "kind", "menu"]`| 匹配项格式 |
196-
| `g:easycomplete_menu_abbr` | 1 | 匹配菜单里menu字段是否显示简写,否则显示全称 |
196+
| `g:easycomplete_menu_abbr` | 0 | 匹配菜单里menu字段是否显示简写,否则显示全称 |
197197
| `g:easycomplete_custom_snippet` | `""` | 自定义 snippets 路径 |
198198
| `g:easycomplete_use_default_cr` | 1 | 是否使用默认回车的事件绑定 |
199199
| `g:easycomplete_pum_pretty_style` | 1 | 开启 border 时自适应 pum 样式 |

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ Global configurations:
193193
| `g:easycomplete_ghost_text` | 1 | Ghost text |
194194
| `g:easycomplete_pum_maxheight` | 20 | Pum window max height |
195195
| `g:easycomplete_pum_format` | `["abbr", "kind", "menu"]`| Pmenu format |
196-
| `g:easycomplete_menu_abbr` | 1 | Show abbr(shortname) at pum `menu` position, or show fullname |
196+
| `g:easycomplete_menu_abbr` | 0 | Show abbr(shortname) at pum `menu` position, or show fullname |
197197
| `g:easycomplete_custom_snippet` | `""` | Custom snippets path |
198198
| `g:easycomplete_use_default_cr` | 1 | enable or disable default cr action |
199199
| `g:easycomplete_pum_pretty_style` | 1 | Adjust the pum style with border automatically |

autoload/easycomplete/sources/tn.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,12 +544,13 @@ function! s:NormalizeCompleteResult(data)
544544
let percent_str = s:fullfill(tmp_detail)
545545
endif
546546
let l:word["menu"] .= percent_str
547+
let l:full_abbr = l:word['word']
547548
let l:word["sort_number"] = matchstr(percent_str, "\\d\\+","g")
548549
let l:word['abbr'] = easycomplete#util#parseAbbr(l:word['word'])
549550
let l:word['word'] = tn_prefix . l:word['word']
550551
let complete_kind = easycomplete#util#get(l:result, 'completion_metadata', 'completion_kind')
551552
let complete_origin = easycomplete#util#get(l:result, 'completion_metadata', 'origin')
552-
let l:word['info'] = join(["TabNine Snippet:", l:word['abbr']], "\n")
553+
let l:word['info'] = join(["TabNine Suggestion:", l:full_abbr], "\n")
553554
call add(l:words, l:word)
554555
endfor
555556
call sort(l:words, {a, b -> str2nr(a["sort_number"]) < str2nr(b["sort_number"])})

plugin/easycomplete.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if !exists("g:easycomplete_nerd_font")
2222
endif
2323

2424
if !exists("g:easycomplete_menu_abbr")
25-
let g:easycomplete_menu_abbr = 1
25+
let g:easycomplete_menu_abbr = 0
2626
endif
2727
if !exists("g:easycomplete_kind_icons")
2828
let g:easycomplete_kind_icons = {}

0 commit comments

Comments
 (0)