Nvim: old versions don't have stdpath() yet
Fixes https://github.com/mhinz/vim-startify/issues/356
This commit is contained in:
parent
ed655d5e1c
commit
bb16fe8d10
|
@ -1031,13 +1031,13 @@ function! s:get_session_path() abort
|
|||
if exists('g:startify_session_dir')
|
||||
let path = g:startify_session_dir
|
||||
elseif has('nvim')
|
||||
let path = stdpath('data') . s:sep . 'session'
|
||||
let path = has('nvim-0.3.1')
|
||||
\ ? stdpath('data') . s:sep . 'session'
|
||||
\ : '~/.local/share/nvim/session'
|
||||
else
|
||||
if has('win32')
|
||||
let path = '$HOME\vimfiles\session'
|
||||
else
|
||||
let path = '~/.vim/session'
|
||||
endif
|
||||
let path = has('win32')
|
||||
\ ? '$HOME\vimfiles\session'
|
||||
\ : '~/.vim/session'
|
||||
endif
|
||||
|
||||
return resolve(expand(path))
|
||||
|
|
Loading…
Reference in a new issue