Don't depend on classpath.vim

Other plugins should be able to set up the path as well without
classpath.vim serving as a clearinghouse.
This commit is contained in:
Tim Pope 2014-04-09 13:20:13 -04:00
parent ead617d9c3
commit 916fc04ecb

View File

@ -454,10 +454,17 @@ function! s:includes_file(file, path) abort
endfunction
function! s:path_extract(path)
if exists('*classpath#from_vim') && a:path =~# '\.jar'
return classpath#split(classpath#from_vim(a:path))
let path = []
if a:path =~# '\.jar'
for elem in split(substitute(a:path, ',$', '', ''), ',')
if elem ==# ''
let path += ['.']
else
let path += split(glob(substitute(elem, '\\\ze[\\ ,]', '', 'g'), 1), "\n")
endif
endfor
endif
return []
return path
endfunction
function! fireplace#path(...) abort