aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/diagnostic.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2026-05-20 11:47:24 +0200
committerJustin M. Keyes <justinkz@gmail.com>2026-05-30 12:57:24 +0200
commitf5fae7aa5cf1e599b2bbc0ef0ae6deccc8c0b3d5 (patch)
tree5ac952bcfef2f6d39cae1b2953ed8dc83164e04c /runtime/lua/vim/diagnostic.lua
parent88f3f0eeec47d1edf62490861a29317cc5c81c89 (diff)
downloadrneovim-f5fae7aa5cf1e599b2bbc0ef0ae6deccc8c0b3d5.tar.gz
rneovim-f5fae7aa5cf1e599b2bbc0ef0ae6deccc8c0b3d5.tar.bz2
rneovim-f5fae7aa5cf1e599b2bbc0ef0ae6deccc8c0b3d5.zip
docs: misc, options, pos/range
Diffstat (limited to 'runtime/lua/vim/diagnostic.lua')
-rw-r--r--runtime/lua/vim/diagnostic.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/runtime/lua/vim/diagnostic.lua b/runtime/lua/vim/diagnostic.lua
index 06832c0b08..5e0c19018c 100644
--- a/runtime/lua/vim/diagnostic.lua
+++ b/runtime/lua/vim/diagnostic.lua
@@ -52,8 +52,9 @@ local M = vim._defer_require('vim.diagnostic', {
--- [diagnostic-structure]()
---
---- Diagnostics use the same indexing as the rest of the Nvim API (i.e. 0-based
---- rows and columns). |api-indexing|
+--- Diagnostics use |api-indexing| (i.e. 0-based rows and columns). See also |vim.pos| and
+--- |vim.range| to convert positions from other systems.
+---
--- @class vim.Diagnostic : vim.Diagnostic.Set
--- @field bufnr integer Buffer number
--- @field end_lnum integer The final line of the diagnostic (0-indexed)
@@ -568,7 +569,7 @@ end
--- Limit diagnostics to one or more namespaces.
--- @field namespace? integer[]|integer
---
---- Limit diagnostics to those spanning the specified line number.
+--- Limit diagnostics to those spanning the specified line number (0-indexed, see |diagnostic-structure|).
--- @field lnum? integer
---
--- See |diagnostic-severity|.