summaryrefslogtreecommitdiff
path: root/ale_linters/julia/languageserver.vim
diff options
context:
space:
mode:
authorAndrea Conti <contiandrea96@gmail.com>2020-12-12 00:16:09 +0100
committerAndrea Conti <contiandrea96@gmail.com>2020-12-12 00:16:09 +0100
commitfa2186d95e30faa9c7e00400100ceca67ad45872 (patch)
tree12bf1796e909bbc121df9a808dcbdf2248590740 /ale_linters/julia/languageserver.vim
parent03b6978a270107b670b0363d50f3eed4b365ba26 (diff)
downloadale-fa2186d95e30faa9c7e00400100ceca67ad45872.zip
Update Julia language server run command
Diffstat (limited to 'ale_linters/julia/languageserver.vim')
-rw-r--r--ale_linters/julia/languageserver.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/ale_linters/julia/languageserver.vim b/ale_linters/julia/languageserver.vim
index 564bec39..ab105e7d 100644
--- a/ale_linters/julia/languageserver.vim
+++ b/ale_linters/julia/languageserver.vim
@@ -6,9 +6,9 @@ call ale#Set('julia_executable', 'julia')
function! ale_linters#julia#languageserver#GetCommand(buffer) abort
let l:julia_executable = ale#Var(a:buffer, 'julia_executable')
- let l:cmd_string = 'using LanguageServer; server = LanguageServer.LanguageServerInstance(isdefined(Base, :stdin) ? stdin : STDIN, isdefined(Base, :stdout) ? stdout : STDOUT, false); server.runlinter = true; run(server);'
+ let l:cmd_string = 'using LanguageServer; using Pkg; import StaticLint; import SymbolServer; server = LanguageServer.LanguageServerInstance(isdefined(Base, :stdin) ? stdin : STDIN, isdefined(Base, :stdout) ? stdout : STDOUT, dirname(Pkg.Types.Context().env.project_file)); server.runlinter = true; run(server);'
- return ale#Escape(l:julia_executable) . ' --startup-file=no --history-file=no -e ' . ale#Escape(l:cmd_string)
+ return ale#Escape(l:julia_executable) . '--project=@. --startup-file=no --history-file=no -e ' . ale#Escape(l:cmd_string)
endfunction
call ale#linter#Define('julia', {