summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-02-10 16:19:32 +0100
committerBram Moolenaar <Bram@vim.org>2018-02-10 16:19:32 +0100
commit9b56a57cdae31f7a2c85d440392bf63d3253a158 (patch)
treec398e599f330084126ba3b9cdc3ef0e86ab8be1c /runtime
parentb301f6b950975b9d7ae87a4f551b32bba63ccdcf (diff)
patch 8.0.1493: completion items cannot be annotatedv8.0.1493
Problem: Completion items cannot be annotated. Solution: Add a "user_data" entry to the completion item. (Ben Jackson, coses #2608, closes #2508)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/insert.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/doc/insert.txt b/runtime/doc/insert.txt
index 73719113ff..2f485102bb 100644
--- a/runtime/doc/insert.txt
+++ b/runtime/doc/insert.txt
@@ -1,4 +1,4 @@
-*insert.txt* For Vim version 8.0. Last change: 2018 Jan 26
+*insert.txt* For Vim version 8.0. Last change: 2018 Feb 10
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1103,6 +1103,8 @@ items:
item with the same word is already present.
empty when non-zero this match will be added even when it is
an empty string
+ user_data custom data which is associated with the item and
+ available in |v:completed_item|
All of these except "icase", "dup" and "empty" must be a string. If an item
does not meet these requirements then an error message is given and further
@@ -1196,6 +1198,8 @@ The menu is used when:
The 'pumheight' option can be used to set a maximum height. The default is to
use all space available.
+The 'pumwidth' option can be used to set a minimum width. The default is 15
+characters.
There are three states:
1. A complete match has been inserted, e.g., after using CTRL-N or CTRL-P.