mirror of
https://github.com/tpope/vim-pathogen.git
synced 2026-05-28 00:21:02 +02:00
Add option to call infect on non-standard paths
Tweak pathogen#infect to take an optional source path to load plugins from, instead of the standard 'bundle' directory.
This commit is contained in:
@@ -16,8 +16,9 @@ endif
|
||||
let g:loaded_pathogen = 1
|
||||
|
||||
" Point of entry for basic default usage.
|
||||
function! pathogen#infect() abort " {{{1
|
||||
call pathogen#runtime_append_all_bundles()
|
||||
function! pathogen#infect(...) abort " {{{1
|
||||
let source_path = a:0 ? a:1 : 'bundle'
|
||||
call pathogen#runtime_append_all_bundles(source_path)
|
||||
call pathogen#cycle_filetype()
|
||||
endfunction " }}}1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user