diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2025-09-11 23:37:51 -0400 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2025-09-13 23:23:24 -0400 |
| commit | a30a947593d6e77828af30facb3bf38307b14f46 (patch) | |
| tree | 54ee065d4c8d00f0aed39b134661c6abf765f782 /src/gen/gen_vimdoc.lua | |
| parent | db67607201a55d7a2d578c6c7661c8e6770f5b2f (diff) | |
| download | rneovim-a30a947593d6e77828af30facb3bf38307b14f46.tar.gz rneovim-a30a947593d6e77828af30facb3bf38307b14f46.tar.bz2 rneovim-a30a947593d6e77828af30facb3bf38307b14f46.zip | |
docs: move editorconfig.txt into plugins.txt
It helps to have plugins living in one common area, because it signals
to users the mechanisms for controlling them, which are typically driven
by keymaps and autocmds rather than builtin options.
We can always revisit if plugins.txt gets "too big" (for example, we may
want to introduce "project.txt" for the project concept, where
editorconfig and 'exrc' are relevant), but for now it's rather unusual
for editorconfig.txt to have its own dedicated helpfile.
Diffstat (limited to 'src/gen/gen_vimdoc.lua')
| -rwxr-xr-x | src/gen/gen_vimdoc.lua | 28 |
1 files changed, 9 insertions, 19 deletions
diff --git a/src/gen/gen_vimdoc.lua b/src/gen/gen_vimdoc.lua index 1797cd9a7e..6a032f4198 100755 --- a/src/gen/gen_vimdoc.lua +++ b/src/gen/gen_vimdoc.lua @@ -384,25 +384,6 @@ local config = { return 'treesitter-' .. name:lower() end, }, - editorconfig = { - filename = 'editorconfig.txt', - files = { - 'runtime/lua/editorconfig.lua', - }, - section_order = { - 'editorconfig.lua', - }, - section_fmt = function(_name) - return 'EditorConfig integration' - end, - helptag_fmt = function(name) - return name:lower() - end, - fn_xform = function(fun) - fun.table = true - fun.name = vim.split(fun.name, '.', { plain = true })[2] - end, - }, health = { filename = 'health.txt', files = { @@ -432,11 +413,20 @@ local config = { plugins = { filename = 'plugins.txt', section_order = { + 'editorconfig.lua', 'tohtml.lua', }, files = { + 'runtime/lua/editorconfig.lua', 'runtime/lua/tohtml.lua', }, + fn_xform = function(fun) + if fun.module == 'editorconfig' then + -- Example: "editorconfig.properties.root()" => "editorconfig.root" + fun.table = true + fun.name = vim.split(fun.name, '.', { plain = true })[2] or fun.name + end + end, section_fmt = function(name) return 'Builtin plugin: ' .. name:lower() end, |