aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/shared.lua
diff options
context:
space:
mode:
authorPRIZ ;] <voxelprismatic@pm.me>2025-05-03 13:34:25 -0500
committerGitHub <noreply@github.com>2025-05-03 11:34:25 -0700
commit902b689c4d57094cc8955f8274773a308b2e8f08 (patch)
treef7b70833399f5cc00f5abecdfd63485faa3a0189 /runtime/lua/vim/shared.lua
parent403fcacfc16fb3a1fbb4be22f77389e0f0616a6e (diff)
downloadrneovim-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