diff options
| author | Lewis Russell <lewis6991@gmail.com> | 2026-09-24 11:53:54 +0100 |
|---|---|---|
| committer | Lewis Russell <me@lewisr.dev> | 2026-09-25 10:28:19 +0100 |
| commit | affa765b076d9c48aaed38b8b40d6b3d91d736f1 (patch) | |
| tree | 73352c8f049b9026f596c9508cec3fa3ae42d578 /runtime/lua/vim/provider/python.lua | |
| parent | 2df7d8e3c91068f424ece9648b0d8c98ebbf113f (diff) | |
| download | rneovim-affa765b076d9c48aaed38b8b40d6b3d91d736f1.tar.gz rneovim-affa765b076d9c48aaed38b8b40d6b3d91d736f1.tar.bz2 rneovim-affa765b076d9c48aaed38b8b40d6b3d91d736f1.zip | |
fix(lua): generate explicit overloads for vim.fn
The generated vim.fn stubs represent overloads as repeated function
declarations. EmmyLua merges their return types, so getline(lnum) is
inferred as string|string[] even though it always returns a string.
Generate one declaration with @overload annotations from the existing
__N entries, while keeping separate Vimdoc signatures. Parenthesize the
overload return list so types such as (0|-1)[] remain arrays.
Correct getline()'s single-line and range signatures, and add typed
getqflist() signatures for its entry-list and property-query forms. This
lets callers infer quickfix results without local type overrides.
AI-assisted
Diffstat (limited to 'runtime/lua/vim/provider/python.lua')
0 files changed, 0 insertions, 0 deletions