diff options
author | Mathias Fußenegger <mfussenegger@users.noreply.github.com> | 2021-12-11 16:59:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-11 16:59:16 +0100 |
commit | 3aff3d6349d878f2f57b8931b2f1a2397926f889 (patch) | |
tree | bb6e6562b2a2d2a0d1f5c21aaddf228770ede024 | |
parent | e93b26eb0e476ab0df920dfe3fbceef686f56a7d (diff) | |
download | rneovim-3aff3d6349d878f2f57b8931b2f1a2397926f889.tar.gz rneovim-3aff3d6349d878f2f57b8931b2f1a2397926f889.tar.bz2 rneovim-3aff3d6349d878f2f57b8931b2f1a2397926f889.zip |
fix(docs): add bufnr and user_data to diagnostic-structure (#16619)
-rw-r--r-- | runtime/doc/diagnostic.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/doc/diagnostic.txt b/runtime/doc/diagnostic.txt index d02510a829..0893f1f343 100644 --- a/runtime/doc/diagnostic.txt +++ b/runtime/doc/diagnostic.txt @@ -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| |