A Neovim plugin that provides GitHub Pull Request integration using the GitHub CLI (gh
).
- 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
- Neovim 0.10.0 or later
- GitHub CLI (
gh
) installed and authenticated - Git
Using lazy.nvim:
{
"tkuramot/go-to-pr.nvim",
config = function()
require("go-to-pr").setup()
end
}
The plugin provides the following functions:
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" })
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" })
MIT License