This is a helper package that starts the rust-analyzer language server for you.
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
}
}
}
}
}
This language server operates on views with the source.rust
base scope.
The server binary is automatically downloaded to $CACHE/Package Storage/LSP-rust-analyzer
.
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.
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).
Moves item under cursor/selection in specified direction.
Opens the URL to documentation for the symbol under the cursor, if available.
Reloads the project metadata, i.e. runs cargo metadata
again.
Shows the full macro expansion of the macro at current cursor.