aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/version.lua
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2026-09-30 14:41:16 +0100
committerLewis Russell <me@lewisr.dev>2026-09-30 17:56:01 +0100
commit364b7a3402634251a766c4a3a81117c296839e12 (patch)
treeecab60376dd1f008b2594ffe3f03ee4bc8fde865 /runtime/lua/vim/version.lua
parent9f7fb8b27dc03daf21ff4524b982e1d6e982ca5e (diff)
downloadrneovim-364b7a3402634251a766c4a3a81117c296839e12.tar.gz
rneovim-364b7a3402634251a766c4a3a81117c296839e12.tar.bz2
rneovim-364b7a3402634251a766c4a3a81117c296839e12.zip
ci(lua): enable annotation and style checks
Problem: - annotation-usage-error and code-style-check are disabled. - vim.inspect relies on a dummy self-assignment for docgen, and its help omits parameter and option details. - LuaLS fallback types obscure iterator inference. - Docgen hardcodes public function names and appends separately sorted files, leaving shared helpers under the inspector heading. Solution: - Enable annotation-usage-error and code-style-check, and fix misplaced annotations. - Document vim.inspect's callable module directly, removing the dummy assignment. Describe its parameters, option defaults and process callback. - Remove LuaLS iterator fallbacks, correct iterator signatures and check values that the improved inference identifies as optional. - Parse callable modules, require bindings and parent module references. Derive public names and inherited function docs from these links, including missing help for vim.async.semaphore() and vim.version(). - Export vim.lsp.tagfunc directly with lazy loading and document its implementation instead of maintaining a wrapper. - Group files in section_order, replacing append_only and merge_files. Merge declarations before sorting each section, placing shared helpers in the main vim section and keeping vim.inspect in alphabetical order. - Add basic parser coverage for callable modules and module links. AI-assisted
Diffstat (limited to 'runtime/lua/vim/version.lua')
-rw-r--r--runtime/lua/vim/version.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/version.lua b/runtime/lua/vim/version.lua
index c380f5d6e0..0556a79dc6 100644
--- a/runtime/lua/vim/version.lua
+++ b/runtime/lua/vim/version.lua
@@ -12,7 +12,7 @@
--- end
--- ```
---
---- [vim.version()]() returns the version of the current Nvim process.
+--- [vim.version()] returns the version of the current Nvim process.
---
--- VERSION RANGE SPEC [version-range]()
---