Skip to content

Commit

Permalink
Add yandex search engine support (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir-skvortsov authored Jul 21, 2024
1 parent deffbdb commit d921f21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions lua/gx/helper.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d921f21

Please sign in to comment.