LSP-rust-analyzer
Convenience package for rust-analyzer
Details
Installs
- Total 7K
- Win 2K
- Mac 2K
- Linux 3K
Apr 2 | Apr 1 | Mar 31 | Mar 30 | Mar 29 | Mar 28 | Mar 27 | Mar 26 | Mar 25 | Mar 24 | Mar 23 | Mar 22 | Mar 21 | Mar 20 | Mar 19 | Mar 18 | Mar 17 | Mar 16 | Mar 15 | Mar 14 | Mar 13 | Mar 12 | Mar 11 | Mar 10 | Mar 9 | Mar 8 | Mar 7 | Mar 6 | Mar 5 | Mar 4 | Mar 3 | Mar 2 | Mar 1 | Feb 28 | Feb 27 | Feb 26 | Feb 25 | Feb 24 | Feb 23 | Feb 22 | Feb 21 | Feb 20 | Feb 19 | Feb 18 | Feb 17 | Feb 16 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 4 | 3 | 8 | 6 | 3 | 7 | 7 | 2 | 3 | 1 | 5 | 5 | 3 | 8 | 6 | 9 | 4 | 7 | 5 | 7 | 7 | 3 | 10 | 13 | 1 | 6 | 15 | 11 | 3 | 4 | 7 | 3 | 2 | 5 | 8 | 10 | 2 | 7 | 4 | 4 | 3 | 6 | 5 | 5 | 9 | 5 |
Mac | 1 | 3 | 8 | 8 | 10 | 5 | 3 | 6 | 2 | 4 | 5 | 7 | 8 | 5 | 7 | 5 | 9 | 3 | 11 | 11 | 4 | 6 | 5 | 4 | 13 | 9 | 14 | 6 | 3 | 6 | 6 | 5 | 6 | 4 | 6 | 4 | 4 | 8 | 5 | 8 | 7 | 7 | 6 | 4 | 5 | 5 |
Linux | 2 | 7 | 12 | 7 | 8 | 10 | 10 | 4 | 3 | 4 | 11 | 3 | 9 | 7 | 4 | 12 | 3 | 5 | 17 | 2 | 17 | 11 | 14 | 12 | 10 | 12 | 19 | 5 | 11 | 10 | 8 | 4 | 9 | 8 | 5 | 5 | 9 | 5 | 7 | 4 | 4 | 6 | 10 | 6 | 0 | 15 |
Readme
- Source
- raw.githubusercontent.com
LSP-rust-analyzer
This is a helper package that starts the rust-analyzer language server for you.
Installation
- Install LSP via Package Control.
- Install LSP-rust-analyzer via Package Control.
- (Recommended) Install the LSP-file-watcher-chokidar via Package Control to enable functionality to notify the server about changed files.
Configuration
You can edit the global settings by opening the Preferences: LSP-rust-analyzer Settings
from the Command Palette.
You can also have a project-specific configuration. Run the Project: Edit Project
from the Command Palette and edit the following in the settings
object.
{
// folders: [
// ...
// ]
"settings": {
"LSP": {
"rust-analyzer": {
"settings": {
//Setting-here
}
}
}
}
}
Applicable Selectors
This language server operates on views with the source.rust
base scope.
Installation Location
The server binary is automatically downloaded to $CACHE/Package Storage/LSP-rust-analyzer
.
Custom Command Palette Commands
LSP-rust-analyzer: Run…
Select a cargo command from the submenu. This spawns a shell with Terminus for tests, checks and executing code.
Note: The Terminus package needs to be installed for this functionality.
LSP-rust-analyzer: Open Docs Under Cursor
Opens the URL to documentation for the symbol under the cursor, if available.
LSP-rust-analyzer: Reload Project
Reloads the project metadata, i.e. runs cargo metadata
again.
LSP-rust-analyzer: Expand Macro Recursively
Shows the full macro expansion of the macro at current cursor.