From d921f21f200113fd3201194aa9dddb033e83768a Mon Sep 17 00:00:00 2001 From: Vladimir Skvortsov Date: Sun, 21 Jul 2024 16:03:49 +0700 Subject: [PATCH] Add yandex search engine support (#66) --- README.md | 2 +- lua/gx/helper.lua | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e57498b..fee829c 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ require("lazy").setup({ }, }, handler_options = { - search_engine = "google", -- you can select between google, bing, duckduckgo, and ecosia + search_engine = "google", -- you can select between google, bing, duckduckgo, ecosia and yandex search_engine = "https://search.brave.com/search?q=", -- or you can pass in a custom search engine select_for_search = false, -- if your cursor is e.g. on a link, the pattern for the link AND for the word will always match. This disables this behaviour for default so that the link is opened without the select option for the word AND link diff --git a/lua/gx/helper.lua b/lua/gx/helper.lua index 95d83cd..d957922 100644 --- a/lua/gx/helper.lua +++ b/lua/gx/helper.lua @@ -127,6 +127,7 @@ function M.get_search_url_from_engine(engine) bing = "https://www.bing.com/search?q=", duckduckgo = "https://duckduckgo.com/?q=", ecosia = "https://www.ecosia.org/search?q=", + yandex = "https://ya.ru/search?text=", } if search_url[engine] == nil then return engine