LanguageServer.jl
LanguageServer.jl copied to clipboard
"Starting async tasks..." message doesn't disappear
I'm trying to use this in Neovim, and besides being slow, it works fine. I do however have the message in the title indefinitely spinning on the bottom right, which is very annoying.
I set the LSP up like this:
lspconfig.julials.setup({
capabilities = capabilities,
on_attach = default_on_attach,
cmd = {
"julia",
"--startup-file=no",
"--history-file=no",
"--eval",
[[
using LanguageServer
depot_path = get(ENV, "JULIA_DEPOT_PATH", "")
project_path = let
dirname(something(
## 1. Finds an explicitly set project (JULIA_PROJECT)
Base.load_path_expand((
p = get(ENV, "JULIA_PROJECT", nothing);
p === nothing ? nothing : isempty(p) ? nothing : p
)),
## 2. Look for a Project.toml file in the current working directory,
## or parent directories, with $HOME as an upper boundary
Base.current_project(),
## 3. First entry in the load path
get(Base.load_path(), 1, nothing),
## 4. Fallback to default global environment,
## this is more or less unreachable
Base.load_path_expand("@v#.#"),
))
end
@info "Running language server" VERSION pwd() project_path depot_path
server = LanguageServer.LanguageServerInstance(stdin, stdout, project_path, depot_path)
server.runlinter = true
run(server)
]],
},
})```