@@ -448,11 +448,12 @@ vim.keymap.set(
448448 over error diagnostics (if they have an error code).
449449
450450 ``` vim
451- :RustLsp explainError {cycle?|current?}
451+ :RustLsp explainError {cycle?|cycle_prev?| current?}
452452 ```
453453 ``` lua
454454 vim .cmd .RustLsp (' explainError' ) -- default to 'cycle'
455455 vim .cmd .RustLsp ({ ' explainError' , ' cycle' })
456+ vim .cmd .RustLsp ({ ' explainError' , ' cycle_prev' })
456457 vim .cmd .RustLsp ({ ' explainError' , ' current' })
457458 ```
458459
@@ -461,6 +462,10 @@ vim.keymap.set(
461462 ` explainError ` will cycle diagnostics,
462463 starting at the cursor position,
463464 until it can find a diagnostic with an error code.
465+
466+ - If called with ` cycle_prev ` :
467+ Like ` vim.diagnostic.goto_prev ` ,
468+ searches backwards for a diagnostic with an error code.
464469
465470 - If called with ` current ` :
466471 Searches for diagnostics only in the
@@ -482,11 +487,12 @@ vim.keymap.set(
482487 together.
483488
484489 ``` vim
485- :RustLsp renderDiagnostic {cycle?|current?}
490+ :RustLsp renderDiagnostic {cycle?|cycle_prev?| current?}
486491 ```
487492 ``` lua
488493 vim .cmd .RustLsp (' renderDiagnostic' ) -- defaults to 'cycle'
489494 vim .cmd .RustLsp ({ ' renderDiagnostic' , ' cycle' })
495+ vim .cmd .RustLsp ({ ' renderDiagnostic' , ' cycle_prev' })
490496 vim .cmd .RustLsp ({ ' renderDiagnostic' , ' current' })
491497 ```
492498
@@ -495,6 +501,10 @@ vim.keymap.set(
495501 ` renderDiagnostic ` will cycle diagnostics,
496502 starting at the cursor position,
497503 until it can find a diagnostic with rendered data.
504+
505+ - If called with ` cycle_prev ` :
506+ Like ` vim.diagnostic.goto_prev ` ,
507+ searches backwards for a diagnostic with rendered data.
498508
499509 - If called with ` current ` :
500510 Searches for diagnostics only in the
0 commit comments