- Improved menu.
This commit is contained in:
parent
e7f9b327de
commit
e8922aebeb
@ -61,7 +61,7 @@ function! s:source.get_complete_words(cur_keyword_pos, cur_keyword_str) "{{{
|
||||
|
||||
let snippet.kind = get(snippet,
|
||||
\ 'neocomplcache__refresh', 0) ? '~' : ''
|
||||
let snippet.menu = neosnippet#util#truncate(
|
||||
let snippet.menu = neosnippet#util#strwidthpart(
|
||||
\ snippet.menu_template, winwidth(0)/3)
|
||||
endfor
|
||||
|
||||
|
@ -56,6 +56,9 @@ endfunction"}}}
|
||||
function! neosnippet#util#truncate(...) "{{{
|
||||
return call(s:V.truncate, a:000)
|
||||
endfunction"}}}
|
||||
function! neosnippet#util#strwidthpart(...) "{{{
|
||||
return call(s:V.strwidthpart, a:000)
|
||||
endfunction"}}}
|
||||
|
||||
function! neosnippet#util#expand(path) "{{{
|
||||
return neosnippet#util#substitute_path_separator(
|
||||
|
Loading…
Reference in New Issue
Block a user