diff options
author | Holden <holden@axoni.com> | 2018-12-07 18:05:20 -0500 |
---|---|---|
committer | Holden <holden@axoni.com> | 2018-12-07 18:05:20 -0500 |
commit | 57a04701c3ac1d06efbf16f2ce184c37f0076d16 (patch) | |
tree | 8181c0025e95cd941e6abe20b45f579e1f783c08 /ale_linters/java | |
parent | cbc029b2b832e6d70d95e6cf810ab6252b42e643 (diff) | |
parent | 9226e13b31474ac17d0c25cd27aa55bff21d55c2 (diff) | |
download | ale-57a04701c3ac1d06efbf16f2ce184c37f0076d16.zip |
Merge branch 'master' of github.com:stegmanh/ale
Diffstat (limited to 'ale_linters/java')
-rw-r--r-- | ale_linters/java/javalsp.vim | 6 |
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', { |