From 936271e74c74877a934b7c87a0143b661f4ff2fd Mon Sep 17 00:00:00 2001 From: yannickreiss Date: Sun, 18 Feb 2024 13:07:33 +0100 Subject: [PATCH] I'm giving up --- lua/sourcer/init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/sourcer/init.lua b/lua/sourcer/init.lua index e433c37..790e69c 100644 --- a/lua/sourcer/init.lua +++ b/lua/sourcer/init.lua @@ -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