Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Co-authored-by: Marc Jakobi <[email protected]>
  • Loading branch information
Rumi152 and mrcjkb authored Jun 21, 2024
1 parent 8d24594 commit 6c6b7e3
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -435,13 +435,15 @@ vim.keymap.set(
vim.cmd.RustLsp({ 'explainError', 'current' })
```

If cycle option:
Like |vim.diagnostic.goto_next|, |explainError| will cycle diagnostics,
starting at the cursor position, until it can find a diagnostic with
an error code.
If current option
Searches for diagnostics only in the current cursor line
Defaults to 'explainError cycle', if called without an argument
- If called with `cycle` or no args:
Like `vim.diagnostic.goto_next`,
`explainError` will cycle diagnostics,
starting at the cursor position,
until it can find a diagnostic with an error code.

- If called with `current`:
Searches for diagnostics only in the
current cursor line.

![](https://github.com/mrcjkb/rustaceanvim/assets/12857160/bac9b31c-22ca-40c4-bfd3-b8c5ba4cc49a)

Expand Down

0 comments on commit 6c6b7e3

Please sign in to comment.