Replies: 1 comment 1 reply
-
I don't think Neovim's LSP client lets you start a server without a buffer to attach to ( I'd recommend ra-multiplex. You still have the initial startup time, but it keeps rust-analyzer running between sessions. Rustaceanvim auto-detects a running ra-multiplex server and connects to it for you. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Feature description
For larger projects
rust-analyzer
takes a long time to load. I fully understand that this is not the fault of this plugin, butrust-analyzer
itself. One band-aid that could help with this plugin though is to start up the lsp client immediately on opening the workspace to get therust-analyzer
timer started ASAP. It would be nice to have a config option where that is possible.For my specific use case I would check the first level of CWD for a cargo.toml and conditionally start the lsp client automatically if it exists.
This could be done using
:RustAnalyzer start
but it looks like this command is unavailable until after the first rust file attach. (Unsure if that is a bug or intended behavior)Beta Was this translation helpful? Give feedback.
All reactions