aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax/python.vim
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2025-09-01 16:26:46 -0400
committerGitHub <noreply@github.com>2025-09-01 13:26:46 -0700
commitd8a88256794feb3fb1a63bd586d80068c4c801f4 (patch)
treeca1432c7b6a20ef1c25b783d826c799aa6555e84 /runtime/syntax/python.vim
parent6888f65be1772f34a35a324c7f3d817e486fc0ab (diff)
downloadrneovim-d8a88256794feb3fb1a63bd586d80068c4c801f4.tar.gz
rneovim-d8a88256794feb3fb1a63bd586d80068c4c801f4.tar.bz2
rneovim-d8a88256794feb3fb1a63bd586d80068c4c801f4.zip
feat(lua): vim.wait() returns callback results #35588
Problem: The callback passed to `vim.wait` cannot return results directly, it must set upvalues or globals. local rv1, rv2, rv3 local ok = vim.wait(200, function() rv1, rv2, rv3 = 'a', 42, { ok = { 'yes' } } return true end) Solution: Let the callback return values after the first "status" result. local ok, rv1, rv2, rv3 = vim.wait(200, function() return true, 'a', 42, { ok = { 'yes' } } end)
Diffstat (limited to 'runtime/syntax/python.vim')
0 files changed, 0 insertions, 0 deletions