@@ -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 |
@@ -54,6 +55,9 @@ CONTENTS *vim-lsp-contents*
54
55
Autocommands | vim-lsp-autocommands |
55
56
lsp_complete_done | lsp_complete_done |
56
57
Mappings | vim-lsp-mappings |
58
+ <plug> (lsp-preview-close) | <plug>(lsp-preview-close) |
59
+ <plug> (lsp-preview-focus) | <plug>(lsp-preview-focus) |
60
+
57
61
Autocomplete | vim-lsp-autocomplete |
58
62
omnifunc | vim-lsp-omnifunc |
59
63
asyncomplete.vim | vim-lsp-asyncomplete |
@@ -172,6 +176,23 @@ g:lsp_preview_float *g:lsp_preview_float*
172
176
" Opens preview windows as normal windows
173
177
let g:lsp_preview_float = 0
174
178
179
+ g:lsp_preview_autoclose *g:lsp_preview_autoclose*
180
+ Type: | Number |
181
+ Default: `1 `
182
+
183
+ Indicates if an opened floating preview shall be automatically closed upon
184
+ movement of the cursor. If set to 1, the window will close automatically if
185
+ the cursor is moved and the preview is not focused. If set to 0, it will
186
+ remain open until explicitly closed (e.g. with <plug> (lsp-preview-close),
187
+ or <ESC> when focused).
188
+
189
+ Example:
190
+ " Preview closes on cursor move
191
+ let g:lsp_preview_autoclose = 1
192
+
193
+ " Preview remains open and waits for an explicit call
194
+ let g:lsp_preview_autoclose = 0
195
+
175
196
g:lsp_insert_text_enabled *g:lsp_insert_text_enabled*
176
197
Type: | Number |
177
198
Default: `1 `
@@ -661,6 +682,8 @@ Available plug mappings are following:
661
682
(lsp-hover)
662
683
(lsp-next-error)
663
684
(lsp-next-reference)
685
+ (lsp-preview-close)
686
+ (lsp-preview-focus)
664
687
(lsp-previous-error)
665
688
(lsp-previous-reference)
666
689
(lsp-references)
@@ -674,6 +697,16 @@ Available plug mappings are following:
674
697
675
698
See also | vim-lsp-commands |
676
699
700
+ <plug> (lsp-preview-close) *<plug>(lsp-preview-close)*
701
+
702
+ Closes an opened preview window
703
+
704
+ <plug> (lsp-preview-focus) *<plug>(lsp-preview-focus)*
705
+
706
+ Transfers focus to an opened preview window or back to the previous window if
707
+ focus is already on the preview window.
708
+
709
+
677
710
===============================================================================
678
711
Autocomplete *vim-lsp-autocomplete*
679
712
0 commit comments