LSP-rust-analyzer
Convenience package for rust-analyzer
Details
Installs
- Total 13K
- Win 4K
- Mac 4K
- Linux 5K
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 | 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 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 2 | 13 | 5 | 9 | 3 | 5 | 3 | 5 | 4 | 9 | 4 | 4 | 14 | 8 | 8 | 4 | 6 | 2 | 5 | 3 | 2 | 6 | 3 | 3 | 5 | 7 | 2 | 6 | 7 | 11 | 3 | 2 | 3 | 5 | 5 | 12 | 8 | 7 | 13 | 4 | 6 | 4 | 5 | 5 | 11 | 5 |
Mac | 2 | 5 | 2 | 4 | 3 | 4 | 3 | 2 | 1 | 4 | 0 | 2 | 4 | 1 | 5 | 1 | 3 | 3 | 2 | 2 | 2 | 1 | 4 | 4 | 2 | 5 | 5 | 5 | 5 | 6 | 10 | 3 | 4 | 4 | 4 | 5 | 6 | 2 | 2 | 0 | 2 | 3 | 0 | 1 | 0 | 3 |
Linux | 0 | 5 | 7 | 4 | 8 | 8 | 8 | 9 | 6 | 4 | 6 | 9 | 5 | 14 | 11 | 1 | 5 | 8 | 8 | 6 | 9 | 11 | 8 | 8 | 7 | 5 | 9 | 7 | 8 | 7 | 9 | 7 | 9 | 11 | 7 | 7 | 11 | 7 | 9 | 10 | 9 | 7 | 10 | 5 | 2 | 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.