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