1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 06:40:05 +08:00
SpaceVim/bundle/nvim-lspconfig/scripts/vimdocgen.lua
2021-10-05 15:13:10 +08:00

29 lines
994 B
Lua

local docgen = require 'babelfish'
local docs = {}
docs.generate = function()
local metadata = {
input_file = './README.md',
output_file = './doc/lspconfig.txt',
project_name = 'lspconfig',
header_aliases = {
['Example: using the defaults'] = { 'Defaults', 'defaults' },
['Example: override some defaults'] = { 'Overriding server defaults', 'override-server-defaults' },
['Example: custom config'] = { 'Custom config', 'custom-config' },
['Example: override default config for all servers'] = { 'Overriding all defaults', 'override-all-defaults' },
['Individual server settings and initialization options'] = {
'Per-server documentation',
'server-documentation',
},
['Keybindings and completion'] = { 'Keybindings', 'keybindings' },
['Manually starting (or restarting) language servers'] = { 'Manual control', 'manual-control' },
},
}
docgen.generate_readme(metadata)
end
docs.generate()
return docs