diff options
Diffstat (limited to 'ale_linters/julia')
-rw-r--r-- | ale_linters/julia/languageserver.vim | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ale_linters/julia/languageserver.vim b/ale_linters/julia/languageserver.vim index d59e9959..c5cd063a 100644 --- a/ale_linters/julia/languageserver.vim +++ b/ale_linters/julia/languageserver.vim @@ -1,9 +1,12 @@ " Author: Bartolomeo Stellato <bartolomeo.stellato@gmail.com> " Description: A language server for Julia +" Set julia executable variable +call ale#Set('julia_executable', 'julia') + function! ale_linters#julia#languageserver#GetCommand(buffer) abort let l:julia_executable = ale#Var(a:buffer, 'julia_executable') - return ale#Escape(l:julia_executable) . ale#Escape("--startup-file=no --history-file=no -e 'using LanguageServer; server = LanguageServer.LanguageServerInstance(STDIN, STDOUT, false); server.runlinter = true; run(server);'") + return ale#Escape(l:julia_executable . " --startup-file=no --history-file=no -e 'using LanguageServer; server = LanguageServer.LanguageServerInstance(STDIN, STDOUT, false); server.runlinter = true; run(server);'") endfunction call ale#linter#Define('julia', { |