LSP-rust-analyzer
Convenience package for rust-analyzer
Details
Installs
- Total 19K
- Win 6K
- Mac 5K
- Linux 8K
| Jan 7 | Jan 6 | Jan 5 | Jan 4 | Jan 3 | Jan 2 | Jan 1 | Dec 31 | Dec 30 | Dec 29 | Dec 28 | Dec 27 | Dec 26 | Dec 25 | Dec 24 | Dec 23 | Dec 22 | Dec 21 | Dec 20 | Dec 19 | Dec 18 | Dec 17 | Dec 16 | Dec 15 | Dec 14 | Dec 13 | Dec 12 | Dec 11 | Dec 10 | Dec 9 | Dec 8 | Dec 7 | Dec 6 | Dec 5 | Dec 4 | Dec 3 | Dec 2 | Dec 1 | Nov 30 | Nov 29 | Nov 28 | Nov 27 | Nov 26 | Nov 25 | Nov 24 | Nov 23 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Windows | 0 | 5 | 2 | 4 | 4 | 3 | 7 | 2 | 2 | 1 | 2 | 5 | 3 | 3 | 1 | 2 | 9 | 2 | 0 | 2 | 2 | 4 | 3 | 3 | 2 | 2 | 5 | 3 | 2 | 5 | 4 | 4 | 3 | 3 | 3 | 2 | 2 | 9 | 2 | 3 | 2 | 1 | 2 | 9 | 5 | 2 |
| Mac | 0 | 3 | 0 | 4 | 1 | 1 | 4 | 3 | 2 | 2 | 4 | 7 | 3 | 4 | 2 | 4 | 1 | 2 | 1 | 1 | 1 | 2 | 1 | 5 | 1 | 0 | 2 | 2 | 1 | 2 | 1 | 2 | 1 | 0 | 3 | 4 | 0 | 2 | 3 | 1 | 2 | 1 | 2 | 4 | 2 | 0 |
| Linux | 1 | 6 | 4 | 4 | 5 | 5 | 29 | 10 | 2 | 6 | 8 | 7 | 3 | 8 | 8 | 8 | 8 | 8 | 4 | 4 | 6 | 6 | 7 | 5 | 3 | 1 | 8 | 3 | 0 | 8 | 9 | 4 | 16 | 10 | 3 | 4 | 3 | 2 | 1 | 4 | 5 | 6 | 3 | 7 | 4 | 5 |
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: Join Lines
Joins lines accounting for rust-specific logic.
Also bound to the default join-lines key binding (ctrlshiftj or commandshiftj on Windows/Linux and Mac respectively).
LSP-rust-analyzer: Move Item Down / Move Item Up
Moves item under cursor/selection in specified direction.
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.