Eval g:startify_custom_header if it's a string
This commit is contained in:
parent
994a85ac22
commit
f90594bb9a
|
@ -68,9 +68,15 @@ function! startify#insane_in_the_membrane() abort
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Must be global so that it can be read by syntax/startify.vim.
|
" Must be global so that it can be read by syntax/startify.vim.
|
||||||
let g:startify_header = exists('g:startify_custom_header')
|
if exists('g:startify_custom_header')
|
||||||
\ ? copy(g:startify_custom_header)
|
if type(g:startify_custom_header) == type([])
|
||||||
\ : startify#fortune#cowsay()
|
let g:startify_header = copy(g:startify_custom_header)
|
||||||
|
else
|
||||||
|
let g:startify_header = eval(g:startify_custom_header)
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
let g:startify_header = startify#fortune#cowsay()
|
||||||
|
endif
|
||||||
let g:startify_header += [''] " add blank line
|
let g:startify_header += [''] " add blank line
|
||||||
call append('$', g:startify_header)
|
call append('$', g:startify_header)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue