Doc: explain all keys for the Funcref type

This commit is contained in:
Marco Hinz 2018-07-03 21:09:33 +02:00
parent 675f8fcc14
commit 7bbc46e1c2
No known key found for this signature in database
GPG key ID: 1C980A1B657B4A4F

View file

@ -186,10 +186,16 @@ Built-in types:~
Funcref type:~
The referenced function must return a list of dictionaries. Each dictionary
is an entry and consists of two keys: 'line' and 'cmd'.
is an entry that consists of these keys:
'line' is the actual entry to display and 'cmd' is a Vim command to execute
when this entry gets chosen.
'line' The text to display for this entry. (required)
'cmd' The Vim command to execute when the entry gets chosen.
(required unless 'path' is given)
'path' Points to a file. This way you can even use the standard markers
like `s` or `v` etc. to open multiple entries at once.
(required unless 'cmd' is given)
Example #1:~
>