- Improved menu.

This commit is contained in:
Shougo Matsushita 2013-03-02 18:31:05 +09:00
parent e7f9b327de
commit e8922aebeb
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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(