diff options
| author | Lewis Russell <lewis6991@gmail.com> | 2026-09-30 14:41:16 +0100 |
|---|---|---|
| committer | Lewis Russell <me@lewisr.dev> | 2026-09-30 17:56:01 +0100 |
| commit | 364b7a3402634251a766c4a3a81117c296839e12 (patch) | |
| tree | ecab60376dd1f008b2594ffe3f03ee4bc8fde865 /runtime/lua/vim/treesitter/dev.lua | |
| parent | 9f7fb8b27dc03daf21ff4524b982e1d6e982ca5e (diff) | |
| download | rneovim-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/treesitter/dev.lua')
| -rw-r--r-- | runtime/lua/vim/treesitter/dev.lua | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/runtime/lua/vim/treesitter/dev.lua b/runtime/lua/vim/treesitter/dev.lua index 5589e807f4..ab98067337 100644 --- a/runtime/lua/vim/treesitter/dev.lua +++ b/runtime/lua/vim/treesitter/dev.lua @@ -12,7 +12,6 @@ local M = {} ---@field named vim.treesitter.dev.Node[] local TSTreeView = {} ----@private ---@class (private) vim.treesitter.dev.TSTreeViewOpts ---@field anon boolean If true, display anonymous nodes. ---@field lang boolean If true, display the language alongside each node. |