local M = {} function M.lookup() local keywords = vim.fn.getreg("*") -- receive yanked text local url = "https://dl.acm.org/action/doSearch?AllField=" .. keywords -- Setup a http socket and request local command = string.format("curl -s '%s'", url) -- Execute the curl command and capture its output local handle = io.popen(command) local response = handle:read("*a") handle:close() print(keywords) end return M