neovim/test/functional/fixtures/start/nvim-leftpad/lua/async_leftpad.lua
2023-06-03 12:06:00 +02:00

6 lines
153 B
Lua

return function (val, res)
local handle
handle = vim.uv.new_async(function() _G[res] = require'leftpad'(val) handle:close() end)
handle:send()
end