nvim: plugin/session: Do not load session if Quickfix list is loaded
This is required if we want to use git-jump or do anything with `nvim -q`.
This commit is contained in:
parent
9fc6d0eb2a
commit
245855e5ff
|
@ -29,7 +29,8 @@ function! s:SessionLoad()
|
||||||
" - neovim is started with arguments
|
" - neovim is started with arguments
|
||||||
" - neovim is opened outside a git repository
|
" - neovim is opened outside a git repository
|
||||||
" - neovim is in pager mode and is getting input from STDIN
|
" - neovim is in pager mode and is getting input from STDIN
|
||||||
if (argc(-1) > 0 || fugitive#Head() == '' || g:session_in_pager_mode == 1)
|
" - neovim is opened with nvim -q
|
||||||
|
if (argc(-1) > 0 || fugitive#Head() == '' || g:session_in_pager_mode == 1 || (!empty(getqflist())))
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue