mirror of
https://github.com/neovim/neovim.git
synced 2025-10-04 17:06:30 +00:00

When it happens it wastes 2 seconds which is NOT included in the normal busted timing info. It is hard to correct this, but we can at least print a warning when this happens.
6 lines
155 B
Lua
6 lines
155 B
Lua
return function (val, res)
|
|
local handle
|
|
handle = vim.loop.new_async(function() _G[res] = require'leftpad'(val) handle:close() end)
|
|
handle:send()
|
|
end
|