Совместимость с Neovim

This commit is contained in:
2022-01-04 15:21:07 +03:00
parent 979bc8f385
commit aa8c8ab374
5 changed files with 14 additions and 4 deletions

View File

@ -242,6 +242,8 @@ function! plug#begin(...)
let home = s:path(s:plug_fnamemodify(s:plug_expand(a:1), ':p'))
elseif exists('g:plug_home')
let home = s:path(g:plug_home)
elseif has('nvim')
let home = stdpath('data') . '/plugged'
elseif !empty(&rtp)
let home = s:path(split(&rtp, ',')[0]) . '/plugged'
else