Skip to content

open-githhub-url.nvim is a Neovim plugin to open the abbreviated GitHub repository URL under the cursor in your browser.

License

Notifications You must be signed in to change notification settings

tetzng/open-github-url.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

open-githhub-url.nvim

open-githhub-url.nvim is a Neovim plugin to open the abbreviated GitHub repository URL under the cursor in your browser.

Installation

Using vim-plug

Plug 'tetzng/open-githhub-url.nvim'

Using dein

call dein#add('tetzng/open-githhub-url.nvim')

Using packer.nvim

use 'tetzng/open-githhub-url.nvim'

Features

  • Open GitHub repository URL with the repository path under the cursor
  • Get the repository path detected under the cursor
  • Open a specific URL in the default web browser

Usage

Open a GitHub URL under the cursor: :OpenGitHubUrlUnderCursor This command opens the GitHub repository URL with the repository path under the cursor.

Get the repository path under the cursor: :GetRepoPathUnderCursor This command prints the repository path detected under the cursor.

Open a specific URL: :OpenUrl https://github.com/user/repo This command opens the given URL in the default web browser.

Setup

To set up the plugin, simply call its setup() function, typically in your init.lua configuration file:

require('open-github-url').setup()

This will create the user commands described in the usage section.

About

open-githhub-url.nvim is a Neovim plugin to open the abbreviated GitHub repository URL under the cursor in your browser.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages