add option: g:startify_unlisted_buffer
This commit is contained in:
parent
b76288d031
commit
250fe3ed12
|
@ -98,6 +98,16 @@ A list of files to bookmark. Those files will always be shown at the bottom of
|
||||||
the start screen.
|
the start screen.
|
||||||
|
|
||||||
|
|
||||||
|
============-
|
||||||
|
|
||||||
|
let g:startify_unlisted_buffer = 1
|
||||||
|
|
||||||
|
Some bad plugins like minibufexpl break, when there is no listed buffer.
|
||||||
|
People can set this variable to 0, to work around that. As a consequence the
|
||||||
|
start screen buffer won't be removed, even after triggering an action from the
|
||||||
|
start screen.
|
||||||
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
4. Commands *startify-commands*
|
4. Commands *startify-commands*
|
||||||
|
|
||||||
|
|
|
@ -26,10 +26,13 @@ command! -nargs=? -bar -complete=customlist,startify#get_session_names SLoad cal
|
||||||
" Function: s:start {{{1
|
" Function: s:start {{{1
|
||||||
function! s:start() abort
|
function! s:start() abort
|
||||||
setfiletype startify
|
setfiletype startify
|
||||||
setlocal nonumber nobuflisted buftype=nofile
|
setlocal nonumber buftype=nofile
|
||||||
if v:version >= 703
|
if v:version >= 703
|
||||||
setlocal norelativenumber
|
setlocal norelativenumber
|
||||||
endif
|
endif
|
||||||
|
if get(g:, 'startify_unlisted_buffer', 1)
|
||||||
|
setlocal nobuflisted
|
||||||
|
endif
|
||||||
|
|
||||||
call append('$', [' startify>', '', ' [e] <empty buffer>'])
|
call append('$', [' startify>', '', ' [e] <empty buffer>'])
|
||||||
let cnt = 0
|
let cnt = 0
|
||||||
|
|
Loading…
Reference in a new issue