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