Read g:startify_list_order every time

Closes #109.
This commit is contained in:
Reuben D'Netto 2014-09-17 20:34:12 +10:00 committed by Marco Hinz
parent 9fbbf730b9
commit 88a3c7e420

View file

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