From 88a3c7e420fd0c0206dcddcbfd65090459797f6d Mon Sep 17 00:00:00 2001 From: Reuben D'Netto Date: Wed, 17 Sep 2014 20:34:12 +1000 Subject: [PATCH] Read g:startify_list_order every time Closes #109. --- autoload/startify.vim | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/autoload/startify.vim b/autoload/startify.vim index 3776ded..fd48cdb 100644 --- a/autoload/startify.vim +++ b/autoload/startify.vim @@ -25,17 +25,6 @@ let s:skiplist = get(g:, 'startify_skiplist', [ \ 'bundle/.*/doc', \ ]) -let s:lists = get(g:, 'startify_list_order', [ - \ [' Last recently opened files:'], - \ 'files', - \ [' Last recently modified files in the current directory:'], - \ 'dir', - \ [' My sessions:'], - \ 'sessions', - \ [' My bookmarks:'], - \ 'bookmarks', - \ ]) - " Function: #get_separator {{{1 function! startify#get_separator() abort return !exists('+shellslash') || &shellslash ? '/' : '\' @@ -94,6 +83,16 @@ function! startify#insane_in_the_membrane(callingbuffer) abort endif let s:section_header_lines = [] + let s:lists = get(g:, 'startify_list_order', [ + \ [' Last recently opened files:'], + \ 'files', + \ [' Last recently modified files in the current directory:'], + \ 'dir', + \ [' My sessions:'], + \ 'sessions', + \ [' My bookmarks:'], + \ 'bookmarks', + \ ]) for item in s:lists if type(item) == 1