Nvim: use XDG data directory

Closes https://github.com/mhinz/vim-startify/pull/351
This commit is contained in:
Tae Sandoval 2019-01-20 11:44:06 -03:00 committed by Marco Hinz
parent 0459cd0952
commit e1be54148e
No known key found for this signature in database
GPG key ID: 1C980A1B657B4A4F
2 changed files with 4 additions and 2 deletions

View file

@ -14,7 +14,8 @@ let s:numfiles = get(g:, 'startify_files_number', 10)
let s:show_special = get(g:, 'startify_enable_special', 1)
let s:relative_path = get(g:, 'startify_relative_path') ? ':~:.' : ':p:~'
let s:session_dir = resolve(expand(get(g:, 'startify_session_dir',
\ has('win32') ? '$HOME\vimfiles\session' : '~/.vim/session')))
\ has('win32') ? '$HOME\vimfiles\session' :
\ has('nvim') ? stdpath('data') . '/session' : '~/.vim/session')))
let s:tf = exists('g:startify_transformations')
let s:skiplist = get(g:, 'startify_skiplist', [