Allow calling findresource with custom path
This commit is contained in:
parent
0fdde20654
commit
18d60a3fa5
@ -370,12 +370,12 @@ function! fireplace#local_client(...) abort
|
||||
throw ':Connect to a REPL or install classpath.vim to evaluate code'
|
||||
endfunction
|
||||
|
||||
function! fireplace#findresource(resource) abort
|
||||
function! fireplace#findresource(resource, ...) abort
|
||||
if a:resource ==# ''
|
||||
return ''
|
||||
endif
|
||||
try
|
||||
let path = fireplace#local_client().path()
|
||||
let path = a:0 ? a:1 : fireplace#local_client().path()
|
||||
catch /^:Connect/
|
||||
return ''
|
||||
endtry
|
||||
|
Loading…
Reference in New Issue
Block a user