Skip to content

tunachip/open.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

open.nvim

Simple Neovim plugin for opening URLs from the current buffer and previewing the current file in a browser.

Features

  • :Open opens URL(s) from the current visual selection.
  • :Open without a selection opens the URL under the cursor.
  • :Telescope url lists every URL in the current buffer and opens the selected one.
  • :Launch opens the current file in a browser.
  • :Launch node serves the current file's directory with the bundled Node server.
  • :Launch python serves the current file's directory with python -m http.server.
  • :Launch file opens the current file directly with a file:// URL.

Installation

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.

Commands

  • :Open
  • :'<,'>Open
  • :Launch
  • :Launch node
  • :Launch python 9000
  • :Launch file

Telescope

Run :Telescope url to scan the current buffer for URLs and open the selected entry in your browser.

About

Open URL's straight from your buffer. Telescope support. Node / Python based Server Support.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors