completor.vim
                                
                                
                                
                                    completor.vim copied to clipboard
                            
                            
                            
                        LanguageServer.jl LSP support
The LSP server for Julia is integrated in several vim LSP clients:
- official documentation on LanguageClient-neovim
 - YCM which is just a copy of the first one
 - ALE
 - vim-lsp-julia which integrates with vim-lsp and asyncomplete
 
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);"'} }