- 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,
|
let snippet.kind = get(snippet,
|
||||||
\ 'neocomplcache__refresh', 0) ? '~' : ''
|
\ 'neocomplcache__refresh', 0) ? '~' : ''
|
||||||
let snippet.menu = neosnippet#util#truncate(
|
let snippet.menu = neosnippet#util#strwidthpart(
|
||||||
\ snippet.menu_template, winwidth(0)/3)
|
\ snippet.menu_template, winwidth(0)/3)
|
||||||
endfor
|
endfor
|
||||||
|
|
||||||
|
@ -56,6 +56,9 @@ endfunction"}}}
|
|||||||
function! neosnippet#util#truncate(...) "{{{
|
function! neosnippet#util#truncate(...) "{{{
|
||||||
return call(s:V.truncate, a:000)
|
return call(s:V.truncate, a:000)
|
||||||
endfunction"}}}
|
endfunction"}}}
|
||||||
|
function! neosnippet#util#strwidthpart(...) "{{{
|
||||||
|
return call(s:V.strwidthpart, a:000)
|
||||||
|
endfunction"}}}
|
||||||
|
|
||||||
function! neosnippet#util#expand(path) "{{{
|
function! neosnippet#util#expand(path) "{{{
|
||||||
return neosnippet#util#substitute_path_separator(
|
return neosnippet#util#substitute_path_separator(
|
||||||
|
Loading…
Reference in New Issue
Block a user