Skip to content

A Neovim plugin written in Lua to quickly open the buffer's current line in GitHub (or GitLab) with your default browser.

License

Notifications You must be signed in to change notification settings

ciehanski/nvim-git-line

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

nvim-git-line

A Vim Plugin written in Lua to quickly open the buffer's current line in GitHub using your default browser.

Installation

Lua:

use { 'ciehanski/nvim-git-line' }

Vimscript:

Plug 'ciehanski/nvim-git-line'

Usage

Lua:

require("nvim-git-line").setup{}

Vimscript:

lua << EOF
require("nvim-git-line").setup{}
EOF

Custom keymappings:

require('nvim-git-line').setup{
  action_key = "<leader>gg",
  action_key_line = "<leader>gl",
}

Custom provider (GitHub, GitLab):

require('nvim-git-line').setup{
  provider = "gitlab", -- github, gitlab
}

About

A Neovim plugin written in Lua to quickly open the buffer's current line in GitHub (or GitLab) with your default browser.

Topics

Resources

License

Stars

Watchers

Forks

Languages