SHOW:
|
|
- or go back to the newest paste.
| 1 | - | function! _FindPlugin(name, path) |
| 1 | + | |
| 2 | - | if a:path == '/' |
| 2 | + | let &runtimepath = a:name . ',' . &rtp |
| 3 | - | return '' |
| 3 | + | |
| 4 | - | endif |
| 4 | + | |
| 5 | - | let find = globpath(a:path, a:name) |
| 5 | + | " Prepend tests repos to &rtp |
| 6 | - | if find == '' |
| 6 | + | call PrependToRTP(expand('$HOME').'/projects/vim/plugins/runVimTests')
|
| 7 | - | return _FindPlugin(a:name, fnamemodify(a:path, ':h')) |
| 7 | + | call PrependToRTP(expand('$HOME').'/projects/vim/plugins/vimtap')
|
| 8 | - | else |
| 8 | + | |
| 9 | - | return simplify(a:path . '/' . a:name) |
| 9 | + | " Glabal vars for commonly tested plugins |
| 10 | - | endif |
| 10 | + | let runVimTests_common = {}
|
| 11 | let runVimTests_common['vimpeg'] = expand('$HOME').'/projects/vim/plugins/vimpeg'
| |
| 12 | ||
| 13 | - | function! FindPlugin(name) |
| 13 | + | " Include the plugin in which the /test/_setup.vim resides |
| 14 | - | return _FindPlugin(a:name, fnamemodify('.', ':p:h'))
|
| 14 | + | call PrependToRTP(expand('%:p:h:h')) |