From 32359b995d6187279eacdb44bd33551b75a427e4 Mon Sep 17 00:00:00 2001 From: James Karefylakis Date: Sun, 7 Apr 2024 22:09:52 +1000 Subject: [PATCH] Fix gx README.md examples --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 94fe8c2..61effcd 100644 --- a/README.md +++ b/README.md @@ -468,7 +468,7 @@ vim.keymap.set("n", "gx", function() require("various-textobjs").url() local foundURL = vim.fn.mode():find("v") if foundURL then - u.normal('"zy') + vim.cmd.normal('"zy') local url = vim.fn.getreg("z") openURL(url) else @@ -484,7 +484,7 @@ vim.keymap.set("n", "gx", function() -- select one, use a plugin like dressing.nvim for nicer UI for -- `vim.ui.select` vim.ui.select(urls, { prompt = "Select URL:" }, function(choice) - if choice then openURL(url) end + if choice then openURL(choice) end end) end end, { desc = "URL Opener" })