vim.diagnostic.JumpOpts
Configuration table with the keys listed below. Some parameters can have their default values changed with |vim.diagnostic.config()|.
Fields7
JumpOpts.diagnostic : vim.Diagnostic | nil
The diagnostic to jump to. Mutually exclusive with {count}, {namespace}, and {severity}.
JumpOpts.count : nil | integer
The number of diagnostics to move by, starting from {pos}. A positive integer moves forward by {count} diagnostics, while a negative integer moves backward by {count} diagnostics. Mutually exclusive with {diagnostic}.
JumpOpts.pos : (integer, integer) | nil
Cursor position as a (row, col) tuple. See |nvimwinget_cursor()|. Used to find the nearest diagnostic when {count} is used. Only used when {count} is non-nil. Default is the current cursor position.
JumpOpts.wrap : nil | boolean
Whether to loop around file or not. Similar to 'wrapscan'. (default: true)
JumpOpts.severity : vim.diagnostic.SeverityFilter | nil
See |diagnostic-severity|.
JumpOpts.on_jump : fun(diagnostic: vim.Diagnostic | nil, bufnr: integer) -> nil | nil
JumpOpts.winid : nil | integer
Window ID (default: 0)