docs(options): remove description for hidden options #30903

Problem:
Hidden options are documented despite being no-ops.

Solution:
Remove docs for hidden options.
Move tags for options that we plan to restore, to ":help nvim-missing".
Move tags for permanently removed options, to ":help nvim-removed".
This commit is contained in:
Famiu Haque
2024-10-22 22:14:01 +06:00
committed by GitHub
parent e178331488
commit 07b4cb6ada
7 changed files with 11 additions and 493 deletions

View File

@ -717,7 +717,7 @@ local function get_option_meta()
local optinfo = vim.api.nvim_get_all_options_info()
local ret = {} --- @type table<string,vim.option_meta>
for _, o in ipairs(opts) do
if o.desc then
if not o.immutable and not o.hidden and o.enable_if ~= false and o.desc then
if o.full_name == 'cmdheight' then
table.insert(o.scope, 'tab')
end