1
0
forked from aniani/vim

patch 8.0.1493: completion items cannot be annotated

Problem:    Completion items cannot be annotated.
Solution:   Add a "user_data" entry to the completion item. (Ben Jackson,
            coses #2608, closes #2508)
This commit is contained in:
Bram Moolenaar
2018-02-10 16:19:32 +01:00
parent b301f6b950
commit 9b56a57cda
5 changed files with 137 additions and 6 deletions

View File

@@ -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.