Skip to content

Neovim plugin that allows you to quickly open the GitHub page of the file you're currently editing directly at the cursor's line.

License

Notifications You must be signed in to change notification settings

lobkovilya/gh-browse.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gh-browse.nvim

gh-browse.nvim is a Neovim plugin that allows you to quickly open the GitHub page of the file you're currently editing, directly at the cursor's line. This plugin utilizes the GitHub CLI (gh) to streamline your workflow, making it easier to reference or share your code.

Features

  • Open the GitHub page for the current file in your default browser.
  • Automatically jumps to the current line number in the GitHub interface.
  • Works seamlessly within your Neovim editing environment.

Requirements

  • Neovim (0.5 or later)
  • Git installed and accessible from your command line
  • GitHub CLI (gh) installed and configured

Installation

use {'lobkovilya/gh-browse.nvim'}

Using vim-plug

Plug 'lobkovilya/gh-browse.nvim'

Usage

To use gh-browse.nvim, you can either call the Lua function directly or set up a key mapping in your Neovim configuration:

lua require('gh-browse').gh_browse()

For convenience, you may want to map this function to a keybinding. For example, to map it to <leader>gh:

vim.api.nvim_set_keymap('n', '<leader>gh', ':lua require("gh-browse").gh_browse()<CR>', {noremap = true, silent = true})

License

gh-browse.nvim is open-sourced software licensed under the MIT license.

About

Neovim plugin that allows you to quickly open the GitHub page of the file you're currently editing directly at the cursor's line.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages