1 2 3 4 5 6 7 8
return function(val, res) local handle handle = vim.uv.new_async(function() _G[res] = require 'leftpad'(val) handle:close() end) handle:send() end