File tree Expand file tree Collapse file tree 4 files changed +5
-4
lines changed
autoload/easycomplete/sources Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Original file line number Diff line number Diff 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 样式 |
Original file line number Diff line number Diff 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 |
Original file line number Diff line number Diff 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" ])})
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ if !exists("g:easycomplete_nerd_font")
2222endif
2323
2424if ! exists (" g:easycomplete_menu_abbr" )
25- let g: easycomplete_menu_abbr = 1
25+ let g: easycomplete_menu_abbr = 0
2626endif
2727if ! exists (" g:easycomplete_kind_icons" )
2828 let g: easycomplete_kind_icons = {}
You can’t perform that action at this time.
0 commit comments