mirror of
https://github.com/junegunn/vim-plug.git
synced 2026-10-09 06:45:48 +08:00
Fix on-demand loading: load ftdetect and **/*.vim as well
This commit is contained in:
1 parent
476a613746
commit
7e69a50890
1 file changed
+2
-2
@@ -166,8 +166,8 @@ endfunction
|
||||
function! s:lod(plug)
|
||||
let rtp = s:rtp(a:plug)
|
||||
call s:add_rtp(rtp)
|
||||
for dir in ['plugin', 'after']
|
||||
for vim in split(globpath(rtp, dir.'/*.vim'), '\n')
|
||||
for dir in ['plugin', 'ftdetect', 'after']
|
||||
for vim in split(globpath(rtp, dir.'/**/*.vim'), '\n')
|
||||
execute 'source '.vim
|
||||
endfor
|
||||
endfor
|
||||
|
||||
Reference in new issue
Block a user