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:
parent
ead617d9c3
commit
916fc04ecb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user