aboutsummaryrefslogtreecommitdiff
path: root/scripts/gen_vimdoc.lua
diff options
context:
space:
mode:
authoraltermo <107814000+altermo@users.noreply.github.com>2024-02-26 11:42:51 -0800
committerLewis Russell <me@lewisr.dev>2024-02-28 16:26:00 +0000
commit2f85bbe61513d12c746641fed6ad07559bd95719 (patch)
tree52bf628d6ea746e7508d576b441122beffe8a3b7 /scripts/gen_vimdoc.lua
parentc538ec85220aea11bbdb52028aa335787e9e4f42 (diff)
downloadrneovim-2f85bbe61513d12c746641fed6ad07559bd95719.tar.gz
rneovim-2f85bbe61513d12c746641fed6ad07559bd95719.tar.bz2
rneovim-2f85bbe61513d12c746641fed6ad07559bd95719.zip
feat!: rewrite TOhtml in lua
Co-authored-by: wookayin <wookayin@gmail.com> Co-authored-by: clason <c.clason@uni-graz.at> Co-authored-by: Lewis Russell <me@lewisr.dev>
Diffstat (limited to 'scripts/gen_vimdoc.lua')
-rwxr-xr-xscripts/gen_vimdoc.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/gen_vimdoc.lua b/scripts/gen_vimdoc.lua
index 290cd83fbc..8acae66f49 100755
--- a/scripts/gen_vimdoc.lua
+++ b/scripts/gen_vimdoc.lua
@@ -161,6 +161,7 @@ local config = {
'iter.lua',
'snippet.lua',
'text.lua',
+ 'tohtml.lua',
},
files = {
'runtime/lua/vim/iter.lua',
@@ -189,6 +190,7 @@ local config = {
'runtime/lua/vim/_meta/lpeg.lua',
'runtime/lua/vim/_meta/re.lua',
'runtime/lua/vim/_meta/spell.lua',
+ 'runtime/lua/tohtml.lua',
},
fn_xform = function(fun)
if contains(fun.module, { 'vim.uri', 'vim.shared', 'vim._editor' }) then
@@ -232,6 +234,9 @@ local config = {
then
return 'VIM.' .. name:upper()
end
+ if name == 'tohtml' then
+ return 'Lua module: tohtml'
+ end
return 'Lua module: vim.' .. name
end,
helptag_fmt = function(name)
@@ -239,6 +244,8 @@ local config = {
return '*lua-vim*'
elseif name == '_options' then
return '*lua-vimscript*'
+ elseif name == 'tohtml' then
+ return '*tohtml*'
end
return '*vim.' .. name:lower() .. '*'
end,