summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2018-12-05 13:10:05 +0000
committerGitHub <noreply@github.com>2018-12-05 13:10:05 +0000
commitdc61d46e2867c485abb6ae761327a8ef036e8098 (patch)
tree909591c0c36cc15138b01bb8cc6fd6c89e0735bf /ale_linters
parent92668b6beb9462f46b9e5d0126a33ee46dcb49cf (diff)
parent3346b200bf6c3cb06359f3f0100d97559e707ddb (diff)
downloadale-dc61d46e2867c485abb6ae761327a8ef036e8098.zip
Merge pull request #2119 from hsanson/1994-fix-javalsp-support
Fix javalsp command.
Diffstat (limited to 'ale_linters')
-rw-r--r--ale_linters/java/javalsp.vim6
1 files changed, 4 insertions, 2 deletions
diff --git a/ale_linters/java/javalsp.vim b/ale_linters/java/javalsp.vim
index 5d1a0c63..1436a52c 100644
--- a/ale_linters/java/javalsp.vim
+++ b/ale_linters/java/javalsp.vim
@@ -2,15 +2,17 @@
" Description: Support for the Java language server https://github.com/georgewfraser/vscode-javac
call ale#Set('java_javalsp_jar', 'javacs.jar')
+call ale#Set('java_javalsp_executable', 'java')
function! ale_linters#java#javalsp#Executable(buffer) abort
- return 'java'
+ return ale#Var(a:buffer, 'java_javalsp_executable')
endfunction
function! ale_linters#java#javalsp#Command(buffer) abort
let l:jar = ale#Var(a:buffer, 'java_javalsp_jar')
+ let l:executable = ale_linters#java#javalsp#Executable(a:buffer)
- return ale#Escape('java -cp ' . l:jar . ' -Xverify:none org.javacs.Main')
+ return ale#Escape(l:executable) . ' -cp ' . l:jar . ' -Xverify:none org.javacs.Main'
endfunction
call ale#linter#Define('java', {