-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathddc-converter_truncate.txt
73 lines (50 loc) · 2.07 KB
/
ddc-converter_truncate.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
*ddc-converter_truncate.txt* Truncate converter for ddc.vim
Author: matsui54 <haru.matu9168 at gmail.com>
License: MIT license
CONTENTS *ddc-converter_truncate-contents*
Introduction |ddc-converter_truncate-introduction|
Install |ddc-converter_truncate-install|
Examples |ddc-converter_truncate-examples|
Params |ddc-converter_truncate-params|
==============================================================================
INTRODUCTION *ddc-converter_truncate-introduction*
This converter truncates length of completion items.
==============================================================================
INSTALL *ddc-converter_truncate-install*
Please install both "ddc.vim" and "denops.vim".
https://github.com/Shougo/ddc.vim
https://github.com/vim-denops/denops.vim
==============================================================================
EXAMPLES *ddc-converter_truncate-examples*
>
call ddc#custom#patch_global('sourceOptions', {
\ '_': {'converters': ['converter_truncate'], 'sorters': []},
\ })
call ddc#custom#patch_global('filterParams', {
\ 'converter_truncate': {'maxAbbrWidth': 60, 'maxInfoWidth': 500},
\ })
<
==============================================================================
PARAMS *ddc-converter_truncate-params*
*ddc-converter_truncate-param-maxAbbrWidth*
maxAbbrWidth (number)
Max width of "abbr" field of |complete-items|.
Default: 80
*ddc-converter_truncate-param-maxInfoWidth*
maxInfoWidth (number)
Max width of "info" field of |complete-items|.
Default: 200
*ddc-converter_truncate-param-maxKindWidth*
maxKindWidth (number)
Max width of "kind" field of |complete-items|.
Default: 40
*ddc-converter_truncate-param-maxMenuWidth*
maxMenuWidth (number)
Max width of "menu" field of |complete-items|.
Default: 40
*ddc-converter_truncate-param-ellipsis*
ellipsis (number)
String that represents truncated characters.
Default: ".."
==============================================================================
vim:tw=78:ts=8:ft=help:norl:noet:fen:noet: