New option: g:startify_session_detection

This commit is contained in:
Marco Hinz 2013-08-08 17:53:40 +02:00
parent f96d217c70
commit 888dcfbc0d
3 changed files with 18 additions and 1 deletions

View file

@ -46,6 +46,12 @@ function! startify#insane_in_the_membrane() abort
call append('$', [' [e] <empty buffer>', ''])
endif
if get(g:, 'startify_session_detection', 1) && filereadable('Session.vim')
call append('$', [' [0] Session.vim', ''])
execute 'nnoremap <buffer> 0 :source Session.vim<cr>'
let cnt = 1
endif
for list in get(g:, 'startify_list_order', ['files', 'sessions', 'bookmarks'])
let cnt = s:show_{list}(cnt)
call append('$', '')