Add after directory to rtp as well
This commit is contained in:
parent
77da66ad63
commit
754abb36a2
1 changed files with 3 additions and 0 deletions
3
plug.vim
3
plug.vim
|
@ -99,6 +99,9 @@ function! s:add(...)
|
||||||
let uri = 'https://git:@github.com/' . plugin . '.git'
|
let uri = 'https://git:@github.com/' . plugin . '.git'
|
||||||
let spec = { 'name': name, 'dir': dir, 'uri': uri, 'branch': branch }
|
let spec = { 'name': name, 'dir': dir, 'uri': uri, 'branch': branch }
|
||||||
execute "set rtp+=".dir
|
execute "set rtp+=".dir
|
||||||
|
if isdirectory(dir.'after')
|
||||||
|
execute "set rtp+=".dir.'after'
|
||||||
|
endif
|
||||||
let g:plug[plugin] = spec
|
let g:plug[plugin] = spec
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue