Skip to content

Commit

Permalink
Adding option 'g:session_ignore_special_pages'
Browse files Browse the repository at this point in the history
This option ignore totally the "special pages" in the session save process
It allows special pages from plugins to auto-open on session start
without any error from opening a void buffer (e.g empty Tagbar)
  • Loading branch information
litchipi committed Jun 2, 2021
1 parent 8c13ec8 commit 8baa0cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion autoload/xolox/session.vim
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@ function! xolox#session#save_state(commands) " {{{2
" output. We will fire the event ourselves when we're really done.
call s:eat_trailing_line(lines, 'unlet SessionLoad')
call s:eat_trailing_line(lines, 'doautoall SessionLoadPost')
call xolox#session#save_special_windows(lines)
if g:session_ignore_special_pages != 'yes'
call xolox#session#save_special_windows(lines)
endif
if !xolox#session#include_tabs()
" Customize the output of :mksession for tab scoped sessions.
let buffers = tabpagebuflist()
Expand Down

0 comments on commit 8baa0cc

Please sign in to comment.