diff options
author | Horacio Sanson <hsanson@gmail.com> | 2021-01-16 15:58:21 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-16 15:58:21 +0900 |
commit | 9387ccfbc57f34f9fdc6af85cd0dbddf5ee8c5ae (patch) | |
tree | 5153be85d6d1a5602e4d0830f3a10c68e512c55e /ale_linters | |
parent | bbac230008f8007f2c6e444f66bc49afc0d2c12a (diff) | |
parent | 6043eeb25ad9019aa1322912de1081fa8a0fa299 (diff) | |
download | ale-9387ccfbc57f34f9fdc6af85cd0dbddf5ee8c5ae.zip |
Merge pull request #3485 from andreaconti/master
Fix Julia Language Server Support
Diffstat (limited to 'ale_linters')
-rw-r--r-- | ale_linters/julia/languageserver.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ale_linters/julia/languageserver.vim b/ale_linters/julia/languageserver.vim index 564bec39..999ad815 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', { |