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