vim: add plugin 'tyru/open-browser.vim'

This commit is contained in:
Fernando Schauenburg 2024-07-14 02:35:43 +02:00
parent c3b1b29768
commit 8a5478ad4c

View file

@ -0,0 +1,22 @@
return {
"tyru/open-browser.vim",
cmd = {
"OpenBrowser",
"OpenBrowserSearch",
"OpenBrowserSmartSearch",
},
keys = {
{
"<leader>o",
"<Plug>(openbrowser-smart-search) -duckduckgo",
desc = "󰖟 [o]pen URL under cursor or search the web",
mode = { "n", "v" },
},
},
init = function()
vim.g.openbrowser_default_search = "duckduckgo"
end,
}