NeoVim plugin to instantly open the GitHub Pull Request associated with the line of code youβre looking at.
Ever found yourself staring at a piece of code thinking:
βWhich PR changed this? What was the discussion behind it?β
view_pr.nvim gives you that context.
- Jump straight to the PR in GitHub from any line of code
- Understand the reasoning behind changes
- Save time flipping between Neovim and your browser
- Open the GitHub PR for the current line with a single command
- Optional key mapping for lightning-fast access
- Lightweight and fast
Using Lazy.nvim:
{
"johnnyBira/view_pr.nvim",
keys = {
{ "<leader>go", "<cmd>ViewPR<CR>", desc = "View PR on current line", silent = true },
},
}Once installed:
- Run
:GitHubViewPRwhile on the line you care about - Or press
<leader>gpif youβve configured the key map above
It will open the associated GitHub PR in your default browser (via xdg-open or open on macOS).
- Git must be installed
- GitHub CLI (
gh) is required - Neovim 0.7+
- A Git repository with remotes pointing to GitHub
Use
:checkhealth view_prto ensure all dependencies are available π
Found a bug, or want a feature? Pull requests are welcome! π
BEER-WARE License
Happy coding! π»
