summaryrefslogtreecommitdiffstats
path: root/runtime/doc/insert.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-08-21 17:29:29 +0200
committerBram Moolenaar <Bram@vim.org>2019-08-21 17:29:29 +0200
commit258cef59d8c53a5b1c04937c826dc133ad5710e2 (patch)
tree7b3534b0d9a3dcd29aa7e911f67058be0b1a11df /runtime/doc/insert.txt
parent9cb698d5647db9299bb5b4b846c23f2015b7262b (diff)
patch 8.1.1904: cannot have an info popup align with the popup menuv8.1.1904
Problem: Cannot have an info popup align with the popup menu. Solution: Add the "align" item to 'completepopup'.
Diffstat (limited to 'runtime/doc/insert.txt')
-rw-r--r--runtime/doc/insert.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/doc/insert.txt b/runtime/doc/insert.txt
index 87407e160c..43b6d65f4c 100644
--- a/runtime/doc/insert.txt
+++ b/runtime/doc/insert.txt
@@ -1124,9 +1124,16 @@ 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)
+ align "item" (default) or "menu"
+ border "on" (default) or "off"
Example: >
:set completepopup=height:10,width:60,highlight:InfoPopup
+When the "align" value is "item then the popup is positioned close to the
+selected item. Changing the selection will also move the popup. When "align"
+is "menu" then the popup is aligned with the top of the menu if the menu is
+below the text, and the bottom of the menu otherwise.
+
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).
Currently these types can be used: