Skip to content

tkuramot/go-to-pr.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

go-to-pr.nvim

A Neovim plugin that provides GitHub Pull Request integration using the GitHub CLI (gh).

Features

  • Open or create Pull Requests directly from Neovim
  • Find the Pull Request that introduced the code at your cursor position
  • Seamless integration with GitHub CLI

Prerequisites

  • Neovim 0.10.0 or later
  • GitHub CLI (gh) installed and authenticated
  • Git

Installation

Using lazy.nvim:

{
  "tkuramot/go-to-pr.nvim",
  config = function()
    require("go-to-pr").setup()
  end
}

Usage

The plugin provides the following functions:

require("go-to-pr").open_pr()

Opens the current branch's Pull Request in your browser. If no PR exists, it opens the PR creation page.

Example mapping:

vim.keymap.set("n", "<leader>gho", function() require("go-to-pr").open_pr end, { desc = "Open/Create PR" })

require("go-to-pr").blame_pr()

Finds and opens the Pull Request that introduced the code at your cursor position.

Example mapping:

vim.keymap.set("n", "<leader>ghb", function() require("go-to-pr").blame_pr end, { desc = "Blame PR" })

License

MIT License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages