From fad15fe78dc9878b7af587a0d15159ea455b8370 Mon Sep 17 00:00:00 2001 From: yannickreiss Date: Sun, 18 Feb 2024 12:40:37 +0100 Subject: [PATCH] update --- lua/sourcer/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/sourcer/init.lua b/lua/sourcer/init.lua index 1e162ac..3b443da 100644 --- a/lua/sourcer/init.lua +++ b/lua/sourcer/init.lua @@ -1,7 +1,7 @@ local M = {} function M.lookup() - local keywords = vim.fn.getreg("") -- receive highlighted text + local keywords = vim.fn.getreg("*") -- receive yanked text local url = "https://dl.acm.org/action/doSearch?AllField=" .. keywords -- Setup a http socket and request