-
Notifications
You must be signed in to change notification settings - Fork 7
/
popup_preview.txt
130 lines (98 loc) · 4.21 KB
/
popup_preview.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
*denops-popup-preview.txt* Show completion documentation
Author : matsui54 <haru.matu9168@gmail.com>
License: MIT license
CONTENTS *denops-popup-preview-contents*
Introduction |denops-popup-preview-introduction|
Usage |denops-popup-preview-usage|
Install |denops-popup-preview-install|
Interface |denops-popup-preview-interface|
Functions |denops-popup-preview-functions|
Highlight |denops-popup-preview-highlight|
Options |denops-popup-preview-options|
Configuration |denops-popup-preview-configuration|
Example |denops-popup-preview-example|
==============================================================================
INTRODUCTION *denops-popup-preview-introduction*
*denops-popup-preview* shows completion documentation. This works in both Vim
and Neovim with other plugins such as vim-lsp, nvim-lsp, ultisnips and so on.
==============================================================================
USAGE *denops-popup-preview-usage*
You need to start manually.
>
call popup_preview#enable()
>
==============================================================================
INSTALL *denops-popup-preview-install*
Use your favorite plugin manager.
==============================================================================
INTERFACE *denops-popup-preview-interface*
------------------------------------------------------------------------------
FUNCTIONS *denops-popup-preview-functions*
popup_preview#enable() *popup_preview#enable()*
Enables |denops-popup-preview|.
popup_preview#disable() *popup_preview#disable()*
Disables |denops-popup-preview|.
popup_preview#is_enabled() *popup_preview#is_enabled()*
Returns weather |denops-popup-preview| plugin is enabled. This
function returns 1 if |denops-popup-preview| is enabled, zero
otherwise.
popup_preview#scroll({count}) *popup_preview#scroll()*
Scroll floating window with {count}.
Example: >
inoremap <buffer> <expr><c-f> popup_preview#scroll(+4)
inoremap <buffer> <expr><c-d> popup_preview#scroll(-4)
------------------------------------------------------------------------------
HIGHLIGHTS *denops-popup-preview-highlights*
These are Neovim only
PopupPreviewDocument *hl-PopupPreviewDocument*
A highlight used for background of floating window.
default: links to |hl-NormalFloat|
PopupPreviewBorder *hl-PopupPreviewBorder*
A highlight used for border of floating window.
default: links to FloatBorder
==============================================================================
OPTIONS *denops-popup-preview-options*
You can customize |denops-popup-preview| with global variable
*g:popup_preview_config* .
|g:popup_preview_config| is a dictionary which has the following keys.
border *denops-popup-preview-option-border*
If it is true, border of floating window is shown.
(default: v:true)
maxWidth *denops-popup-preview-option-maxWidth*
Max width of floating window.
(default: 80)
maxHeight *denops-popup-preview-option-maxHeight*
Max height of floating window.
(default: 30)
winblend *denops-popup-preview-option-winblend*
'winblend' of the floating window
(Only in Neovim)
(default: 'winblend')
supportVsnip *denops-popup-preview-option-supporVsnip*
If it is true, vsnip's snippets preview is shown.
(default: v:true)
supportUltisnips *denops-popup-preview-option-supporUltisnips*
If it is true, ultisnips' snippets preview is shown.
(default: v:true)
supportInfo *denops-popup-preview-option-supportInfo*
If it is true, preview of "info" field of |complete-items| is
enabled.
(default: v:true)
delay *denops-popup-preview-option-delay*
Time in milliseconds to delay the completion documentation
popup. If you feel slow, specify large value.
Set 0 to disable debouncing.
(default: 30)
debug *denops-popup-preview-option-debug*
If it is true, output the debug log to the console.
(default: v:false)
==============================================================================
EXAMPLE *denops-popup-preview-example*
>
let g:popup_preview_config = {
\ 'maxWidth': 60,
\ 'maxHeight': 30,
\ }
>
==============================================================================
vim:tw=78:ts=8:ft=help:norl:noet:fen: