LSP-rust-analyzer
Convenience package for rust-analyzer
Details
Installs
- Total 17K
- Win 6K
- Mac 4K
- Linux 7K
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 | Apr 18 | Apr 17 | Apr 16 | Apr 15 | Apr 14 | Apr 13 | Apr 12 | Apr 11 | Apr 10 | Apr 9 | Apr 8 | Apr 7 | Apr 6 | Apr 5 | Apr 4 | Apr 3 | Apr 2 | Apr 1 | Mar 31 | Mar 30 | Mar 29 | Mar 28 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 6 | 3 | 6 | 1 | 1 | 7 | 4 | 3 | 2 | 8 | 1 | 7 | 2 | 5 | 4 | 6 | 4 | 3 | 2 | 5 | 3 | 5 | 4 | 5 | 2 | 2 | 8 | 6 | 6 | 2 | 4 | 7 | 4 | 7 | 3 | 7 | 11 | 3 | 2 | 4 | 2 | 6 | 3 | 7 | 3 | 9 |
Mac | 5 | 1 | 0 | 5 | 15 | 3 | 5 | 3 | 3 | 1 | 0 | 3 | 5 | 2 | 3 | 6 | 1 | 7 | 4 | 3 | 4 | 1 | 2 | 3 | 4 | 3 | 8 | 4 | 1 | 1 | 0 | 4 | 6 | 1 | 3 | 3 | 2 | 0 | 3 | 2 | 2 | 3 | 3 | 3 | 8 | 2 |
Linux | 3 | 3 | 2 | 3 | 4 | 7 | 4 | 5 | 4 | 6 | 4 | 4 | 5 | 2 | 3 | 4 | 10 | 3 | 0 | 4 | 3 | 4 | 5 | 2 | 7 | 5 | 3 | 1 | 2 | 3 | 8 | 7 | 1 | 10 | 2 | 5 | 3 | 6 | 1 | 4 | 9 | 6 | 5 | 7 | 4 | 4 |
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.