vim.Diagnostic.Set
Diagnostics use the same indexing as the rest of the Nvim API (i.e. 0-based rows, and columns given as 0-based byte indices). |api-indexing|
Fields10
Set.lnum : integer
The starting line of the diagnostic (0-indexed)
Set.col : nil | integer
The starting column of the diagnostic (0-indexed) (default: 0)
Set.end_lnum : nil | integer
The final line of the diagnostic (0-indexed) (default: lnum)
Set.end_col : nil | integer
The final column of the diagnostic (0-indexed) (default: col)
Set.severity : vim.diagnostic.Severity | nil
The severity of the diagnostic |vim.diagnostic.severity| (default: vim.diagnostic.severity.ERROR)
Set.message : string
The diagnostic text
Set.source : nil | string
The source of the diagnostic
Set.code : nil | string | integer
The diagnostic code
Set._tags : { deprecated: boolean, unnecessary: boolean } | nil
Set.user_data : any
Arbitrary data plugins or users can add
arbitrary data plugins can add