@@ -14,6 +14,7 @@ CONTENTS *vim-lsp-contents*
14
14
g:lsp_auto_enable | g:lsp_auto_enable |
15
15
g:lsp_preview_keep_focus | g:lsp_preview_keep_focus |
16
16
g:lsp_preview_float | g:lsp_preview_float |
17
+ g:lsp_preview_autoclose | g:lsp_preview_autoclose |
17
18
g:lsp_insert_text_enabled | g:lsp_insert_text_enabled |
18
19
g:lsp_text_edit_enabled | g:lsp_text_edit_enabled |
19
20
g:lsp_diagnostics_echo_cursor | g:lsp_diagnostics_echo_cursor |
@@ -50,6 +51,9 @@ CONTENTS *vim-lsp-contents*
50
51
LspTypeDefinition | LspTypeDefinition |
51
52
LspWorkspaceSymbol | LspWorkspaceSymbol |
52
53
Mappings | vim-lsp-mappings |
54
+ <plug> (lsp-preview-close) | <plug>(lsp-preview-close) |
55
+ <plug> (lsp-preview-focus) | <plug>(lsp-preview-focus) |
56
+
53
57
Autocomplete | vim-lsp-autocomplete |
54
58
omnifunc | vim-lsp-omnifunc |
55
59
asyncomplete.vim | vim-lsp-asyncomplete |
@@ -167,6 +171,23 @@ g:lsp_preview_float *g:lsp_preview_float*
167
171
" Opens preview windows as normal windows
168
172
let g:lsp_preview_float = 0
169
173
174
+ g:lsp_preview_autoclose *g:lsp_preview_autoclose*
175
+ Type: | Number |
176
+ Default: `1 `
177
+
178
+ Indicates if an opened floating preview shall be automatically closed upon
179
+ movement of the cursor. If set to 1, the window will close automatically if
180
+ the cursor is moved and the preview is not focused. If set to 0, it will
181
+ remain open until explicitly closed (e.g. with <plug> (lsp-preview-close),
182
+ or <ESC> when focused).
183
+
184
+ Example:
185
+ " Preview closes on cursor move
186
+ let g:lsp_preview_autoclose = 1
187
+
188
+ " Preview remains open and waits for an explicit call
189
+ let g:lsp_preview_autoclose = 0
190
+
170
191
g:lsp_insert_text_enabled *g:lsp_insert_text_enabled*
171
192
Type: | Number |
172
193
Default: `1 `
@@ -615,6 +636,8 @@ Available plug mappings are following:
615
636
(lsp-hover)
616
637
(lsp-next-error)
617
638
(lsp-next-reference)
639
+ (lsp-preview-close)
640
+ (lsp-preview-focus)
618
641
(lsp-previous-error)
619
642
(lsp-previous-reference)
620
643
(lsp-references)
@@ -628,6 +651,16 @@ Available plug mappings are following:
628
651
629
652
See also | vim-lsp-commands |
630
653
654
+ <plug> (lsp-preview-close) *<plug>(lsp-preview-close)*
655
+
656
+ Closes an opened preview window
657
+
658
+ <plug> (lsp-preview-focus) *<plug>(lsp-preview-focus)*
659
+
660
+ Transfers focus to an opened preview window or back to the previous window if
661
+ focus is already on the preview window.
662
+
663
+
631
664
===============================================================================
632
665
Autocomplete *vim-lsp-autocomplete*
633
666
0 commit comments