mirror of
https://github.com/neovim/neovim.git
synced 2025-12-11 17:12:40 +00:00
Use stdpath() to determine rplugin manifest path
This commit is contained in:
@@ -11,14 +11,8 @@ function! s:GetManifestPath() abort
|
|||||||
return fnamemodify($NVIM_RPLUGIN_MANIFEST, ':p')
|
return fnamemodify($NVIM_RPLUGIN_MANIFEST, ':p')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let dest = has('win32') ? '$LOCALAPPDATA' : '$XDG_DATA_HOME'
|
let dest = stdpath('data')
|
||||||
if !exists(dest)
|
|
||||||
let dest = has('win32') ? '~/AppData/Local' : '~/.local/share'
|
|
||||||
endif
|
|
||||||
|
|
||||||
let dest = fnamemodify(expand(dest), ':p')
|
|
||||||
if !empty(dest)
|
if !empty(dest)
|
||||||
let dest .= ('/' ==# dest[-1:] ? '' : '/') . 'nvim'
|
|
||||||
if !isdirectory(dest)
|
if !isdirectory(dest)
|
||||||
call mkdir(dest, 'p', 0700)
|
call mkdir(dest, 'p', 0700)
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user