LSP-rust-analyzer
Convenience package for rust-analyzer
Details
Installs
- Total 9K
- Win 3K
- Mac 3K
- Linux 4K
Sep 25 | Sep 24 | Sep 23 | Sep 22 | Sep 21 | Sep 20 | Sep 19 | Sep 18 | Sep 17 | Sep 16 | Sep 15 | Sep 14 | Sep 13 | Sep 12 | Sep 11 | Sep 10 | Sep 9 | Sep 8 | Sep 7 | Sep 6 | Sep 5 | Sep 4 | Sep 3 | Sep 2 | Sep 1 | Aug 31 | Aug 30 | Aug 29 | Aug 28 | Aug 27 | Aug 26 | Aug 25 | Aug 24 | Aug 23 | Aug 22 | Aug 21 | Aug 20 | Aug 19 | Aug 18 | Aug 17 | Aug 16 | Aug 15 | Aug 14 | Aug 13 | Aug 12 | Aug 11 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 5 | 4 | 4 | 3 | 5 | 4 | 4 | 2 | 4 | 6 | 5 | 6 | 6 | 6 | 1 | 2 | 3 | 3 | 5 | 10 | 4 | 1 | 0 | 1 | 8 | 11 | 6 | 4 | 3 | 4 | 3 | 6 | 9 | 6 | 5 | 3 | 4 | 6 | 2 | 5 | 3 | 2 | 3 | 5 | 8 | 2 |
Mac | 4 | 2 | 3 | 0 | 2 | 3 | 4 | 6 | 2 | 2 | 5 | 6 | 3 | 4 | 1 | 2 | 5 | 3 | 2 | 4 | 6 | 6 | 5 | 3 | 7 | 6 | 2 | 2 | 0 | 3 | 2 | 4 | 9 | 2 | 2 | 4 | 2 | 4 | 1 | 2 | 1 | 3 | 6 | 3 | 6 | 6 |
Linux | 9 | 3 | 5 | 7 | 6 | 1 | 8 | 5 | 9 | 6 | 5 | 5 | 10 | 4 | 9 | 2 | 13 | 2 | 9 | 7 | 4 | 7 | 4 | 3 | 5 | 3 | 6 | 5 | 5 | 10 | 2 | 5 | 5 | 6 | 9 | 3 | 13 | 6 | 8 | 12 | 4 | 8 | 7 | 11 | 6 | 2 |
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.