aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/diagnostic.lua
diff options
context:
space:
mode:
authorMathias Fußenegger <mfussenegger@users.noreply.github.com>2023-04-12 15:16:15 +0200
committerGitHub <noreply@github.com>2023-04-12 15:16:15 +0200
commit37011bc45ef333776bccea84a1a7ced6c68e3b51 (patch)
tree3b761392dfdd2beed0717d8245ba2dbff3525ede /runtime/lua/vim/diagnostic.lua
parentf5231d61a5413e3ea45a060dd31e4537634f3d87 (diff)
downloadrneovim-37011bc45ef333776bccea84a1a7ced6c68e3b51.tar.gz
rneovim-37011bc45ef333776bccea84a1a7ced6c68e3b51.tar.bz2
rneovim-37011bc45ef333776bccea84a1a7ced6c68e3b51.zip
fix(diagnostic): rename buffer → bufnr in type annotation (#23042)
See `:h diagnostic-structure`, the property name is `bufnr`, not `buffer`.
Diffstat (limited to 'runtime/lua/vim/diagnostic.lua')
-rw-r--r--runtime/lua/vim/diagnostic.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/diagnostic.lua b/runtime/lua/vim/diagnostic.lua
index 714038f8e4..d1b50304c7 100644
--- a/runtime/lua/vim/diagnostic.lua
+++ b/runtime/lua/vim/diagnostic.lua
@@ -744,7 +744,7 @@ function M.get_namespaces()
end
---@class Diagnostic
----@field buffer integer
+---@field bufnr integer
---@field lnum integer 0-indexed
---@field end_lnum nil|integer 0-indexed
---@field col integer 0-indexed