I'm giving up

This commit is contained in:
2024-02-18 13:07:33 +01:00
parent 4162e49c35
commit 936271e74c

View File

@@ -4,6 +4,8 @@ function M.lookup()
local keywords = vim.fn.getreg("*") -- receive yanked text
local url = "https://dl.acm.org/action/doSearch?AllField=" .. keywords
print("Entering the function")
-- Setup a http socket and request
local command = string.format("curl -s '%s'", url)
@@ -12,7 +14,7 @@ function M.lookup()
local response = handle:read("*a")
handle:close()
print("Test")
print("Test")
print(keywords)
end