mirror of
https://github.com/neovim/neovim.git
synced 2026-07-22 00:51:33 +00:00
fix(docs): add bufnr and user_data to diagnostic-structure (#16619)
This commit is contained in:
committed by
GitHub
parent
e93b26eb0e
commit
3aff3d6349
@@ -41,6 +41,7 @@ requires a namespace.
|
||||
*diagnostic-structure*
|
||||
A diagnostic is a Lua table with the following keys:
|
||||
|
||||
bufnr: Buffer number
|
||||
lnum: The starting line of the diagnostic
|
||||
end_lnum: The final line of the diagnostic
|
||||
col: The starting column of the diagnostic
|
||||
@@ -48,6 +49,7 @@ A diagnostic is a Lua table with the following keys:
|
||||
severity: The severity of the diagnostic |vim.diagnostic.severity|
|
||||
message: The diagnostic text
|
||||
source: The source of the diagnostic
|
||||
user_data: Arbitrary data plugins or users can add
|
||||
|
||||
Diagnostics use the same indexing as the rest of the Nvim API (i.e. 0-based
|
||||
rows and columns). |api-indexing|
|
||||
|
||||
Reference in New Issue
Block a user