diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2026-03-20 23:52:42 +0100 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2026-03-24 00:14:55 +0100 |
| commit | a3b48b1054d01084face54d830f35c7a5a4e35a4 (patch) | |
| tree | 8b109566731ed9539ff99c08ed088963d490d44f /src/gen/gen_vimdoc.lua | |
| parent | f29b3b5d458b18282b405eb566386ab4b350ded5 (diff) | |
| download | rneovim-a3b48b1054d01084face54d830f35c7a5a4e35a4.tar.gz rneovim-a3b48b1054d01084face54d830f35c7a5a4e35a4.tar.bz2 rneovim-a3b48b1054d01084face54d830f35c7a5a4e35a4.zip | |
docs: api, plugins, ui2
Diffstat (limited to 'src/gen/gen_vimdoc.lua')
| -rwxr-xr-x | src/gen/gen_vimdoc.lua | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/gen/gen_vimdoc.lua b/src/gen/gen_vimdoc.lua index 2db5b85b1d..9ad60580a6 100755 --- a/src/gen/gen_vimdoc.lua +++ b/src/gen/gen_vimdoc.lua @@ -431,10 +431,10 @@ local config = { }, files = { 'runtime/lua/editorconfig.lua', + 'runtime/lua/nvim/spellfile.lua', 'runtime/pack/dist/opt/nvim.tohtml/lua/tohtml.lua', 'runtime/pack/dist/opt/nvim.undotree/lua/undotree.lua', 'runtime/pack/dist/opt/nvim.difftool/lua/difftool.lua', - 'runtime/lua/nvim/spellfile.lua', }, fn_xform = function(fun) if fun.module == 'editorconfig' then @@ -451,10 +451,8 @@ local config = { end, helptag_fmt = function(name) name = name:lower() - if name == 'spellfile' then - name = 'spellfile.lua' - elseif name == 'undotree' then - name = 'undotree-plugin' + if vim.tbl_contains({ 'spellfile', 'tohtml', 'undotree' }, name) then + name = ('package-%s'):format(name) end return name end, @@ -801,18 +799,19 @@ local function render_fun(fun, classes, cfg) return end + local internal = vim.startswith(fun.name, 'nvim__') local ret = {} --- @type string[] table.insert(ret, render_fun_header(fun, cfg)) table.insert(ret, '\n') - if fun.since then - local since = assert(tonumber(fun.since), 'invalid @since on ' .. fun.name) + if internal or fun.since then + local since = assert(tonumber(fun.since or (internal and 0)), 'invalid @since on ' .. fun.name) local nvim_api = nvim_api_info() _ = nvim_api -- Disable prerelease "WARNING" doc, in preparation for for upcoming release. if - since == 0 --[[or (nvim_api.prerelease and since == nvim_api.level)]] + internal or since == 0 --[[or (nvim_api.prerelease and since == nvim_api.level)]] then -- Experimental = (since==0 or current prerelease) local s = 'WARNING: This feature is experimental/unstable.' |