Win: correct session dir for Nvim

This commit is contained in:
Marco Hinz 2019-02-15 19:38:29 +01:00
parent bb16fe8d10
commit 9c5680cd0b
No known key found for this signature in database
GPG key ID: 1C980A1B657B4A4F

View file

@ -1032,11 +1032,13 @@ function! s:get_session_path() abort
let path = g:startify_session_dir
elseif has('nvim')
let path = has('nvim-0.3.1')
\ ? stdpath('data') . s:sep . 'session'
\ : '~/.local/share/nvim/session'
else
\ ? stdpath('data').'/session'
\ : has('win32')
\ ? '~/AppData/Local/nvim-data/session'
\ : '~/.local/share/nvim/session'
else " Vim
let path = has('win32')
\ ? '$HOME\vimfiles\session'
\ ? '~/vimfiles/session'
\ : '~/.vim/session'
endif