@@ -19,59 +19,59 @@ and integrates with other rust tools.
1919
2020Commands:
2121
22- ` :RustAnalyzer start` - Start the LSP client.
23- ` :RustAnalyzer stop` - Stop the LSP client.
24- ` :RustAnalyzer restart` - Restart the LSP client.
25- ` :RustAnalyzer reloadSettings` - Reload settings for the LSP client.
22+ ' :RustAnalyzer start' - Start the LSP client.
23+ ' :RustAnalyzer stop' - Stop the LSP client.
24+ ' :RustAnalyzer restart' - Restart the LSP client.
25+ ' :RustAnalyzer reloadSettings' - Reload settings for the LSP client.
2626
27- The ` :RustLsp[! ]` command is available after the LSP client has initialized.
27+ The ' :RustLsp[!]' command is available after the LSP client has initialized.
2828It accepts the following subcommands:
2929
30- ` runnables [ args[]]?` - Run tests, executables, etc.
31- ` :RustLsp! ` means run the last runnable (ignores any args).
30+ ' runnables { args[]} ?' - Run tests, executables, etc.
31+ ' :RustLsp!' means run the last runnable (ignores any args).
3232 `args []` allows you to override the executable's arguments.
33- ` debuggables [ args[]]?` - Debug tests, executables, etc. (requires | nvim-dap | ).
34- ` :RustLsp! ` means run the last debuggable (ignores any args).
33+ ' debuggables { args[]} ?' - Debug tests, executables, etc. (requires | nvim-dap | ).
34+ ' :RustLsp!' means run the last debuggable (ignores any args).
3535 `args []` allows you to override the executable's arguments.
36- ` testables [ args[]]?` - Run tests
37- ` :RustLsp! ` means run the last testable (ignores any args).
36+ ' testables { args[]} ?' - Run tests
37+ ' :RustLsp!' means run the last testable (ignores any args).
3838 `args []` allows you to override the executable's arguments.
39- ` expandMacro` - Expand macros recursively.
40- ` moveItem [ up|down]` - Move items up or down.
41- ` hover [ actions|range]` - Hover actions, or hover over visually selected range.
42- ` explainError` - Display a hover window with explanations form the Rust error index.
43- ` renderDiagnostic` - Display a hover window with the rendered diagnostic,
39+ ' expandMacro' - Expand macros recursively.
40+ ' moveItem { up|down}' - Move items up or down.
41+ ' hover { actions|range}' - Hover actions, or hover over visually selected range.
42+ ' explainError' - Display a hover window with explanations form the Rust error index.
43+ ' renderDiagnostic' - Display a hover window with the rendered diagnostic,
4444 as displayed during `cargo build`.
45- ` openCargo` - Open the Cargo.toml file for the current package.
46- ` parentModule` - Open the current module's parent module.
47- ` workspaceSymbol [ onlyTypes?|allSymbols?] [ query?]`
45+ ' openCargo' - Open the Cargo.toml file for the current package.
46+ ' parentModule' - Open the current module's parent module.
47+ ' workspaceSymbol { onlyTypes?|allSymbols?} { query?}'
4848 Filtered workspace symbol search.
4949 When run with a bang (`:RustLsp! workspaceSymbol ...`),
5050 rust-analyzer will include dependencies in the search.
5151 You can also configure rust-analyzer so that | vim.lsp.buf.workspace_symbol |
5252 supports filtering (with a # suffix to the query) or searching dependencies.
53- ` joinLines` - Join adjacent lines.
54- ` ssr [ query] ` - Structural search and replace.
55- ` crateGraph [ backend] ` - Create and view a crate graph with graphviz.
56- ` syntaxTree` - View the syntax tree.
57- ` view [ mir|hir]` - View MIR or HIR.
58- ` flyCheck` [ run?| clear? | cancel?]
53+ ' joinLines' - Join adjacent lines.
54+ ' ssr { query} ' - Structural search and replace.
55+ ' crateGraph { backend} ' - Create and view a crate graph with graphviz.
56+ ' syntaxTree' - View the syntax tree.
57+ ' view { mir|hir}' - View MIR or HIR.
58+ ' flyCheck' { run?| clear? | cancel?}
5959 - Run `cargo check` or another compatible command (f.x. `clippy` )
6060 in a background thread and provide LSP diagnostics based on
6161 the output of the command.
6262 Useful in large projects where running `cargo check` on each save
6363 can be costly.
6464 Defaults to `flyCheck run` if called without an argument.
65- ` logFile` - Open the rust-analyzer log file.
65+ ' logFile' - Open the rust-analyzer log file.
6666
67- The ` :Rustc` command can be used to interact with rustc.
67+ The ' :Rustc' command can be used to interact with rustc.
6868It accepts the following subcommands:
6969
70- ` unpretty args[]` - Opens a buffer with a textual representation of the MIR or others things,
71- of the function closest to the cursor.
72- Achieves an experience similar to Rust Playground.
73- NOTE: This currently requires a tree-sitter parser for Rust,
74- and a nightly compiler toolchain.
70+ ' unpretty { args[]} ' - Opens a buffer with a textual representation of the MIR or others things,
71+ of the function closest to the cursor.
72+ Achieves an experience similar to Rust Playground.
73+ NOTE: This currently requires a tree-sitter parser for Rust,
74+ and a nightly compiler toolchain.
7575
7676==============================================================================
7777plugin configuration *rustaceanvim.config*
0 commit comments