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