diff options
author | James McCoy <jamessan@jamessan.com> | 2018-12-20 21:40:05 -0500 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2018-12-20 21:40:05 -0500 |
commit | 15cc17521ef01f33af4930574099a1d8b930461e (patch) | |
tree | 865b76484fc1f79d02b92cc5eb236e980691185c | |
parent | 87b40f7445dce4477d575ac74b63132bade60a47 (diff) | |
download | rneovim-15cc17521ef01f33af4930574099a1d8b930461e.tar.gz rneovim-15cc17521ef01f33af4930574099a1d8b930461e.tar.bz2 rneovim-15cc17521ef01f33af4930574099a1d8b930461e.zip |
Use stdpath() to determine rplugin manifest path
-rw-r--r-- | runtime/plugin/rplugin.vim | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/runtime/plugin/rplugin.vim b/runtime/plugin/rplugin.vim index 56163c894e..b9e872a0d6 100644 --- a/runtime/plugin/rplugin.vim +++ b/runtime/plugin/rplugin.vim @@ -11,14 +11,8 @@ function! s:GetManifestPath() abort return fnamemodify($NVIM_RPLUGIN_MANIFEST, ':p') endif - let dest = has('win32') ? '$LOCALAPPDATA' : '$XDG_DATA_HOME' - if !exists(dest) - let dest = has('win32') ? '~/AppData/Local' : '~/.local/share' - endif - - let dest = fnamemodify(expand(dest), ':p') + let dest = stdpath('data') if !empty(dest) - let dest .= ('/' ==# dest[-1:] ? '' : '/') . 'nvim' if !isdirectory(dest) call mkdir(dest, 'p', 0700) endif |