New option: g:startify_session_detection
This commit is contained in:
parent
f96d217c70
commit
888dcfbc0d
3 changed files with 18 additions and 1 deletions
|
@ -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('$', '')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue