Files
neovim/test/functional/fixtures/start/nvim-leftpad/lua/async_leftpad.lua
2024-01-03 02:09:29 +01:00

9 lines
163 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