aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Sully <22371+dsully@users.noreply.github.com>2025-02-23 07:51:12 -0800
committerGitHub <noreply@github.com>2025-02-23 07:51:12 -0800
commitb28373638848c0532bea346f48083c7e65f2d8f6 (patch)
tree6758807386a612cfc53a4eb235efae069467aafa
parent4a0ee22e77d169191e7163d1340b835145f4dac9 (diff)
downloadrneovim-b28373638848c0532bea346f48083c7e65f2d8f6.tar.gz
rneovim-b28373638848c0532bea346f48083c7e65f2d8f6.tar.bz2
rneovim-b28373638848c0532bea346f48083c7e65f2d8f6.zip
fix(lua): `@private` => `@nodoc` #32587
Problem: vim.log.levels.* and vim.opt_local are marked `@private` but they should be `@nodoc`. Solution: Fix the annotation.
-rw-r--r--runtime/lua/vim/_editor.lua2
-rw-r--r--runtime/lua/vim/_options.lua6
2 files changed, 4 insertions, 4 deletions
diff --git a/runtime/lua/vim/_editor.lua b/runtime/lua/vim/_editor.lua
index a77ea9bb91..94168bea5d 100644
--- a/runtime/lua/vim/_editor.lua
+++ b/runtime/lua/vim/_editor.lua
@@ -56,7 +56,7 @@ vim._extra = {
inspect_pos = true,
}
---- @private
+--- @nodoc
vim.log = {
--- @enum vim.log.levels
levels = {
diff --git a/runtime/lua/vim/_options.lua b/runtime/lua/vim/_options.lua
index 973ad87ee8..e98b95f837 100644
--- a/runtime/lua/vim/_options.lua
+++ b/runtime/lua/vim/_options.lua
@@ -922,11 +922,11 @@ function Option:prepend(value) end -- luacheck: no unused
---@diagnostic disable-next-line:unused-local used for gen_vimdoc
function Option:remove(value) end -- luacheck: no unused
----@private
+--- @nodoc
vim.opt = create_option_accessor()
----@private
+--- @nodoc
vim.opt_local = create_option_accessor('local')
----@private
+--- @nodoc
vim.opt_global = create_option_accessor('global')