Simple Neovim plugin for opening URLs from the current buffer and previewing the current file in a browser.
:Openopens URL(s) from the current visual selection.:Openwithout a selection opens the URL under the cursor.:Telescope urllists every URL in the current buffer and opens the selected one.:Launchopens the current file in a browser.:Launch nodeserves the current file's directory with the bundled Node server.:Launch pythonserves the current file's directory withpython -m http.server.:Launch fileopens the current file directly with afile://URL.
Using lazy.nvim:
{
dir = "/home/tunachip/Development/open.nvim",
config = function()
require("open").setup({
launch = {
default_mode = "auto",
port = 8123,
},
})
end,
}If you want :Telescope url, install nvim-telescope/telescope.nvim.
:Open:'<,'>Open:Launch:Launch node:Launch python 9000:Launch file
Run :Telescope url to scan the current buffer for URLs and open the selected entry in your browser.