File tree Expand file tree Collapse file tree 3 files changed +20
-0
lines changed
Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -424,6 +424,10 @@ vim.keymap.set(
424424 vim .cmd .RustLsp (' explainError' )
425425 ```
426426
427+ Like ` vim.diagnostic.goto_next ` , ` explainError ` will cycle diagnostics,
428+ starting at the cursor position, until it can find a diagnostic with
429+ an error code.
430+
427431![ ] ( https://github.com/mrcjkb/rustaceanvim/assets/12857160/bac9b31c-22ca-40c4-bfd3-b8c5ba4cc49a )
428432
429433</details >
@@ -446,6 +450,10 @@ vim.keymap.set(
446450 vim .cmd .RustLsp (' renderDiagnostic' )
447451 ```
448452
453+ Like ` vim.diagnostic.goto_next ` , ` renderDiagnostic ` will cycle diagnostics,
454+ starting at the cursor position, until it can find a diagnostic with
455+ rendered data.
456+
449457![ ] ( https://github.com/mrcjkb/rustaceanvim/assets/12857160/a972c6b6-c504-4c2a-8380-53451bb8c2de )
450458
451459</details >
Original file line number Diff line number Diff line change @@ -42,8 +42,14 @@ It accepts the following subcommands:
4242 'moveItem {up|down}' - Move items up or down.
4343 'hover {actions|range}' - Hover actions, or hover over visually selected range.
4444 'explainError' - Display a hover window with explanations form the Rust error index.
45+ Like | vim.diagnostic.goto_next | , | explainError | will cycle diagnostics,
46+ starting at the cursor position, until it can find a diagnostic with
47+ an error code.
4548 'renderDiagnostic' - Display a hover window with the rendered diagnostic,
4649 as displayed during `cargo build`.
50+ Like | vim.diagnostic.goto_next | , | renderDiagnostic | will cycle diagnostics,
51+ starting at the cursor position, until it can find a diagnostic with
52+ rendered data.
4753 'openCargo' - Open the Cargo.toml file for the current package.
4854 'openDocs' - Open docs.rs documentation for the symbol under the cursor.
4955 'parentModule' - Open the current module's parent module.
Original file line number Diff line number Diff line change 3535--- 'moveItem {up|down}' - Move items up or down.
3636--- 'hover {actions|range}' - Hover actions, or hover over visually selected range.
3737--- 'explainError' - Display a hover window with explanations form the Rust error index.
38+ --- Like |vim.diagnostic.goto_next|, |explainError| will cycle diagnostics,
39+ --- starting at the cursor position, until it can find a diagnostic with
40+ --- an error code.
3841--- 'renderDiagnostic' - Display a hover window with the rendered diagnostic,
3942--- as displayed during `cargo build`.
43+ --- Like |vim.diagnostic.goto_next|, |renderDiagnostic| will cycle diagnostics,
44+ --- starting at the cursor position, until it can find a diagnostic with
45+ --- rendered data.
4046--- 'openCargo' - Open the Cargo.toml file for the current package.
4147--- 'openDocs' - Open docs.rs documentation for the symbol under the cursor.
4248--- 'parentModule' - Open the current module's parent module.
You can’t perform that action at this time.
0 commit comments