diff options
| author | PRIZ ;] <voxelprismatic@pm.me> | 2025-05-03 13:34:25 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-03 11:34:25 -0700 |
| commit | 902b689c4d57094cc8955f8274773a308b2e8f08 (patch) | |
| tree | f7b70833399f5cc00f5abecdfd63485faa3a0189 /runtime/lua/vim/shared.lua | |
| parent | 403fcacfc16fb3a1fbb4be22f77389e0f0616a6e (diff) | |
| download | rneovim-902b689c4d57094cc8955f8274773a308b2e8f08.tar.gz rneovim-902b689c4d57094cc8955f8274773a308b2e8f08.tar.bz2 rneovim-902b689c4d57094cc8955f8274773a308b2e8f08.zip | |
docs(lua): typing for vim.fn.winlayout #33817
Problem:
`any[]` means nothing, and the return value is not the same as what's
documented in the comment (eg, Lua returns `{ "row", { { "leaf", 1000 },
{ "leaf", 1001 } } }`, not `{ "row", { "leaf", 1000, "leaf", 1001 } }`)
Solution:
Create two classes (vim.fn.winlayout.leaf and vim.fn.winlayout.branch)
and one alias that links the two together.
Also: Due to LuaLS limitations, there is an empty class,
vim.fn.winlayout.empty
Signed-Off-By: VoxelPrismatic <voxelprismatic@pm.me>
Diffstat (limited to 'runtime/lua/vim/shared.lua')
0 files changed, 0 insertions, 0 deletions