Remove unnecessary operations
This commit is contained in:
parent
1f4e3eb063
commit
abbbe914f0
1 changed files with 2 additions and 3 deletions
5
plug.vim
5
plug.vim
|
@ -401,7 +401,7 @@ function! s:reorg_rtp()
|
||||||
|
|
||||||
let s:middle = get(s:, 'middle', &rtp)
|
let s:middle = get(s:, 'middle', &rtp)
|
||||||
let rtps = map(s:loaded_names(), 's:rtp(g:plugs[v:val])')
|
let rtps = map(s:loaded_names(), 's:rtp(g:plugs[v:val])')
|
||||||
let afters = filter(map(copy(rtps), 'globpath(v:val, "after")'), 'isdirectory(v:val)')
|
let afters = filter(map(copy(rtps), 'globpath(v:val, "after")'), '!empty(v:val)')
|
||||||
let rtp = join(map(rtps, 'escape(v:val, ",")'), ',')
|
let rtp = join(map(rtps, 'escape(v:val, ",")'), ',')
|
||||||
\ . ','.s:middle.','
|
\ . ','.s:middle.','
|
||||||
\ . join(map(afters, 'escape(v:val, ",")'), ',')
|
\ . join(map(afters, 'escape(v:val, ",")'), ',')
|
||||||
|
@ -576,8 +576,7 @@ function! s:infer_properties(name, repo)
|
||||||
let fmt = get(g:, 'plug_url_format', 'https://git::@github.com/%s.git')
|
let fmt = get(g:, 'plug_url_format', 'https://git::@github.com/%s.git')
|
||||||
let uri = printf(fmt, repo)
|
let uri = printf(fmt, repo)
|
||||||
endif
|
endif
|
||||||
let dir = s:dirpath( fnamemodify(join([g:plug_home, a:name], '/'), ':p') )
|
return { 'dir': s:dirpath(g:plug_home.'/'.a:name), 'uri': uri }
|
||||||
return { 'dir': dir, 'uri': uri }
|
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue