diff --git a/lua/sourcer/init.lua b/lua/sourcer/init.lua index 3612b9f..9ebcda4 100644 --- a/lua/sourcer/init.lua +++ b/lua/sourcer/init.lua @@ -3,6 +3,8 @@ local M = {} function M.lookup() local keywords = vim.fn.getreg("*") -- receive yanked text local url = "https://dl.acm.org/action/doSearch?AllField=" .. keywords + url = url:sub(2, #url) + url, empty = url:gsub(" ", "+") -- Setup a http socket and request local command = string.format("curl -s '%s'", url)