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
|
endfunction
|
||||||
|
|
||||||
function! s:path_extract(path)
|
function! s:path_extract(path)
|
||||||
if exists('*classpath#from_vim') && a:path =~# '\.jar'
|
let path = []
|
||||||
return classpath#split(classpath#from_vim(a: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
|
endif
|
||||||
return []
|
endfor
|
||||||
|
endif
|
||||||
|
return path
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! fireplace#path(...) abort
|
function! fireplace#path(...) abort
|
||||||
|
Loading…
Reference in New Issue
Block a user