summaryrefslogtreecommitdiffstats
path: root/runtime/doc/insert.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-08-18 16:35:23 +0200
committerBram Moolenaar <Bram@vim.org>2019-08-18 16:35:23 +0200
commit62a0cb443c3184f24a6dac73d3505f9056cf6056 (patch)
tree42ee160304d76f887d29e4e9a193c426d8bacb75 /runtime/doc/insert.txt
parentf4665e78f2d1b2ca64de5f5331d03de7d61c8c66 (diff)
patch 8.1.1882: cannot specify properties of the info popup windowv8.1.1882
Problem: Cannot specify properties of the info popup window. Solution: Add the 'completepopup' option. Default to PmenuSel highlight.
Diffstat (limited to 'runtime/doc/insert.txt')
-rw-r--r--runtime/doc/insert.txt25
1 files changed, 18 insertions, 7 deletions
diff --git a/runtime/doc/insert.txt b/runtime/doc/insert.txt
index 852ba68a26..8ba360b620 100644
--- a/runtime/doc/insert.txt
+++ b/runtime/doc/insert.txt
@@ -1,4 +1,4 @@
-*insert.txt* For Vim version 8.1. Last change: 2019 May 07
+*insert.txt* For Vim version 8.1. Last change: 2019 Aug 18
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1092,7 +1092,7 @@ items:
menu extra text for the popup menu, displayed after "word"
or "abbr"
info more information about the item, can be displayed in a
- preview window
+ preview or popup window
kind single letter indicating the type of completion
icase when non-zero case is to be ignored when comparing
items to be equal; when omitted zero is used, thus
@@ -1114,11 +1114,22 @@ items in the returned list.
The "menu" item is used in the popup menu and may be truncated, thus it should
be relatively short. The "info" item can be longer, it will be displayed in
-the preview window when "preview" appears in 'completeopt'. The "info" item
-will also remain displayed after the popup menu has been removed. This is
-useful for function arguments. Use a single space for "info" to remove
-existing text in the preview window. The size of the preview window is three
-lines, but 'previewheight' is used when it has a value of 1 or 2.
+the preview window when "preview" appears in 'completeopt' or in a popup
+window when "popup" appears in 'completeopt'. In the preview window the
+"info" item will also remain displayed after the popup menu has been removed.
+This is useful for function arguments. Use a single space for "info" to
+remove existing text in the preview window. The size of the preview window is
+three lines, but 'previewheight' is used when it has a value of 1 or 2.
+
+ *complete-popup*
+When "popup" is in 'completeopt' a popup window is used to display the "info".
+Then the 'completepopup' option specifies the properties of the popup. The
+option is a comma separated list of values:
+ height maximum height of the popup
+ width maximum width of the popup
+ highlight highlight group of the popup (default is Pmenu)
+Example: >
+ :set completepopup=height:10,width:60,highlight:InfoPopup
The "kind" item uses a single letter to indicate the kind of completion. This
may be used to show the completion differently (different color or icon).