aboutsummaryrefslogtreecommitdiff
path: root/scripts/gen_vimdoc.lua
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2024-05-23 11:40:51 +0200
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2024-05-24 11:07:30 +0200
commit6dc62c2e2b413a9bbaf0746660c5638936303249 (patch)
tree672244415580242c0c98f1df4768afbacc9d38ee /scripts/gen_vimdoc.lua
parent4f431bb632b5285fc0f0d5e6ac0ff21b7c6ef101 (diff)
downloadrneovim-6dc62c2e2b413a9bbaf0746660c5638936303249.tar.gz
rneovim-6dc62c2e2b413a9bbaf0746660c5638936303249.tar.bz2
rneovim-6dc62c2e2b413a9bbaf0746660c5638936303249.zip
docs: extract health to its own file
Diffstat (limited to 'scripts/gen_vimdoc.lua')
-rwxr-xr-xscripts/gen_vimdoc.lua17
1 files changed, 15 insertions, 2 deletions
diff --git a/scripts/gen_vimdoc.lua b/scripts/gen_vimdoc.lua
index eea5688621..9c6225efc3 100755
--- a/scripts/gen_vimdoc.lua
+++ b/scripts/gen_vimdoc.lua
@@ -162,7 +162,6 @@ local config = {
'snippet.lua',
'text.lua',
'tohtml.lua',
- 'health.lua',
},
files = {
'runtime/lua/vim/iter.lua',
@@ -182,7 +181,6 @@ local config = {
'runtime/lua/vim/snippet.lua',
'runtime/lua/vim/text.lua',
'runtime/lua/vim/glob.lua',
- 'runtime/lua/vim/health.lua',
'runtime/lua/vim/_meta/builtin.lua',
'runtime/lua/vim/_meta/diff.lua',
'runtime/lua/vim/_meta/mpack.lua',
@@ -363,6 +361,21 @@ local config = {
fun.name = vim.split(fun.name, '.', { plain = true })[2]
end,
},
+ health = {
+ filename = 'health.txt',
+ files = {
+ 'runtime/lua/vim/health.lua',
+ },
+ section_order = {
+ 'health.lua',
+ },
+ section_fmt = function(_name)
+ return 'Checkhealth'
+ end,
+ helptag_fmt = function(name)
+ return name:lower()
+ end,
+ },
}
--- @param ty string