completor.vim icon indicating copy to clipboard operation
completor.vim copied to clipboard

LanguageServer.jl LSP support

Open ljmc-github opened this issue 5 years ago • 0 comments

The LSP server for Julia is integrated in several vim LSP clients:

Would it be possible to have Julia support directly ?

Based on the first two I tried to implement it, but neither seems to work, with LanguageServer.jl installed both in the local project environment and the general environment...

  • from official doc:
let g:completor_filetype_map = { 'julia': {'ft': 'lsp', 'cmd': '/path/to/bin/julia --startup-file=no --history-file=no -e "using LanguageServer, Pkg; run(LanguageServerInstance(stdin, stdout, false, dirname(Pkg.Types.Context().env.project_file)))"'} }
  • from ALE:
let g:completor_filetype_map = { 'julia': {'ft': 'lsp', 'cmd': '/path/to/bin/julia --startup-file=no --history-file=no -e "using LanguageServer; server = LanguageServer.LanguageServerInstance(isdefined(Base, :stdin) ? stdin : STDIN, isdefined(Base, :stdout) ? stdout : STDOUT, false); server.runlinter = true; run(server);"'} }

ljmc-github avatar May 20 '20 13:05 ljmc-github