summaryrefslogtreecommitdiff
path: root/ale_linters/java
diff options
context:
space:
mode:
authorHoracio Sanson <horacio@allm.net>2018-08-26 22:11:36 +0900
committerHoracio Sanson <horacio@allm.net>2018-08-26 22:11:36 +0900
commit261c29c3d09607a7a4fb38a62603950e71b7635c (patch)
tree16532b89af468ce1420798e47cb7c7312ab80e19 /ale_linters/java
parent228aee71a58bd9f845d1a67e08d9012a1f26d8b2 (diff)
downloadale-261c29c3d09607a7a4fb38a62603950e71b7635c.zip
Add vader test and fix command callback.
Diffstat (limited to 'ale_linters/java')
-rw-r--r--ale_linters/java/javalsp.vim12
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', {