refactor(iter): move helper functions under vim.iter

vim.iter is now both a function and a module (similar to vim.version).
This commit is contained in:
Gregory Anders
2023-04-24 19:57:40 -06:00
parent 147bb87245
commit 1e73891d69
5 changed files with 214 additions and 230 deletions

View File

@@ -188,7 +188,7 @@ CONFIG = {
f'*vim.{name}()*'
if fstem.lower() == '_editor'
else f'*{name}()*'
if fstem in ('iter.lua')
if name[0].isupper()
else f'*{fstem}.{name}()*'),
'module_override': {
# `shared` functions are exposed on the `vim` module.
@@ -202,6 +202,7 @@ CONFIG = {
'fs': 'vim.fs',
'secure': 'vim.secure',
'version': 'vim.version',
'iter': 'vim.iter',
},
'append_only': [
'shared.lua',