diff options
author | Horacio Sanson <horacio@allm.net> | 2018-08-26 22:11:36 +0900 |
---|---|---|
committer | Horacio Sanson <horacio@allm.net> | 2018-08-26 22:11:36 +0900 |
commit | 261c29c3d09607a7a4fb38a62603950e71b7635c (patch) | |
tree | 16532b89af468ce1420798e47cb7c7312ab80e19 /ale_linters/java | |
parent | 228aee71a58bd9f845d1a67e08d9012a1f26d8b2 (diff) | |
download | ale-261c29c3d09607a7a4fb38a62603950e71b7635c.zip |
Add vader test and fix command callback.
Diffstat (limited to 'ale_linters/java')
-rw-r--r-- | ale_linters/java/javalsp.vim | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/ale_linters/java/javalsp.vim b/ale_linters/java/javalsp.vim index fa1fe4cb..f335e83c 100644 --- a/ale_linters/java/javalsp.vim +++ b/ale_linters/java/javalsp.vim @@ -4,18 +4,12 @@ call ale#Set('java_javalsp_jar', 'javacs.jar') function! ale_linters#java#javalsp#Executable(buffer) abort - let l:jar = ale#VarFunc('java_javalsp_jar')(a:buffer) - - if filereadable(l:jar) - return 'java' - endif - - return '' + return 'java' endfunction function! ale_linters#java#javalsp#Command(buffer) abort - let l:jar = ale#VarFunc('java_javalsp_jar')(a:buffer) - return 'exec java -cp ' . l:jar . ' -Xverify:none org.javacs.Main' + let l:jar = ale#Var(a:buffer, 'java_javalsp_jar') + return ale#Escape('java -cp ' . l:jar . ' -Xverify:none org.javacs.Main') endfunction call ale#linter#Define('java', { |