vim.Diagnostic
Diagnostics use |api-indexing| (i.e. 0-based rows, and columns given as 0-based byte indices). See also |vim.pos| and |vim.range| to convert positions from other systems.
Fields7
Diagnostic.bufnr : integer
Buffer number
Diagnostic.end_lnum : integer
The final line of the diagnostic (0-indexed)
Diagnostic.col : integer
The starting column of the diagnostic (0-indexed)
Diagnostic.end_col : integer
The final column of the diagnostic (0-indexed)
Diagnostic.severity : vim.diagnostic.Severity
The severity of the diagnostic |vim.diagnostic.severity|
Diagnostic.namespace : nil | integer
Diagnostic._extmark_id : nil | integer