vim: add plugin 'tyru/open-browser.vim'
This commit is contained in:
parent
c3b1b29768
commit
8a5478ad4c
1 changed files with 22 additions and 0 deletions
22
config/nvim/lua/fschauen/plugins/openbrowser.lua
Normal file
22
config/nvim/lua/fschauen/plugins/openbrowser.lua
Normal 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,
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue