When editing this file for a minute I get an error message - something about being disconnected to the ra server.
$ nvim src/lib.rs RA runs for about 103 seconds.
1st try: 70 seconds
2nd try: 10 seconds.
3rd try: 10 seconds.
4th try: instant.
1st try: instant.
1st try: instant.
1st try: 10 seconds
2nd try: 3 seconds
3rd try: 12 seconds
4th try: 12 seconds
It looks like rust-analyzer mostly parses enough rust code to satisfy the current query, and not the whole code base. It's strange that gd 'String' always takes 12 seconds.
I'd really prefer it if rust-analyzer parsed all 141 packages on startup. Rationale:
- I can do useful things while waiting for rust-analyzer to parse things when I start vim.
- I don't care how long it takes - I can leave my vim window open forever via mosh.
- I don't care how much memory it takes.
Each time code completion takes 18 seconds.