Doc: mention startify#fortune#predefined_quotes()

This commit is contained in:
Marco Hinz 2018-01-14 15:38:05 +01:00
parent 21294851f6
commit d66c31f02e
No known key found for this signature in database
GPG key ID: 1C980A1B657B4A4F

View file

@ -590,7 +590,7 @@ Also have a look at |startify-faq-08|.
*g:startify_custom_header_quotes*
If you don't set |g:startify_custom_header|, the internal cowsay implementation
with shipped random quotes will be used.
with predefined random quotes will be used.
To use your own quotes, set this option to a list of quotes. Each quote is
either another list or a |Funcref| (see |expr-lambda|) that returns a list.
@ -603,6 +603,11 @@ Each element of the inner lists is put on an own line in the custom header.
\ {-> systemlist('echo quote #3')}
\ ]
<
If you want the predefined quotes as well, use this:
>
let g:startify_custom_header_quotes =
\ startify#fortune#predefined_quotes() + [['quote 1', 'quote 2']]
<
------------------------------------------------------------------------------
*g:startify_custom_footer*
>