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