Skip to content

Stop guessing why the code changed. Know the PR, know the full story. πŸ“–βœ¨

License

Notifications You must be signed in to change notification settings

johnnyBira/view_pr.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

view_pr.nvim πŸ‘€

Demo

NeoVim plugin to instantly open the GitHub Pull Request associated with the line of code you’re looking at.


Why use this? πŸ€”

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

Features ✨

  • Open the GitHub PR for the current line with a single command
  • Optional key mapping for lightning-fast access
  • Lightweight and fast

Installation πŸ’Ύ

Using Lazy.nvim:

{
  "johnnyBira/view_pr.nvim",
  keys = {
    { "<leader>go", "<cmd>ViewPR<CR>", desc = "View PR on current line", silent = true },
  },
}

Usage πŸ› οΈ

Once installed:

  • Run :GitHubViewPR while on the line you care about
  • Or press <leader>gp if 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).


Requirements βœ…

  • Git must be installed
  • GitHub CLI (gh) is required
  • Neovim 0.7+
  • A Git repository with remotes pointing to GitHub

Use :checkhealth view_pr to ensure all dependencies are available πŸ”


Contributing 🀝

Found a bug, or want a feature? Pull requests are welcome! πŸ’Œ


License πŸ“„

BEER-WARE License

Happy coding! 🍻

About

Stop guessing why the code changed. Know the PR, know the full story. πŸ“–βœ¨

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages