This plugins shows github pull request information of the current line.It will look for the Pull request on the added remote repositories.
To use this plugin gh needed to be set up.
KeyBinding | cursor | Mode | Description |
---|---|---|---|
<CR>(Enter) |
popup | Normal | To open it on the browser press while cursor on the popup. |
q |
popup | Normal | Quit from popup while cursor on the popup. |
![nvim-pr-screenshot](https://private-user-images.githubusercontent.com/23137328/331783349-a2674bd1-a227-4fd3-976c-f2864a69eefa.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk4NDk3MzEsIm5iZiI6MTczOTg0OTQzMSwicGF0aCI6Ii8yMzEzNzMyOC8zMzE3ODMzNDktYTI2NzRiZDEtYTIyNy00ZmQzLTk3NmMtZjI4NjRhNjllZWZhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE4VDAzMzAzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTljZmJkZmIxMzg0ZDQxMWFmYmUyMGU3ZDM5YTEwMGI2MDU5NzU3NGEzZWVmYmQ2ZTNhYTI3MWM3NjAzMzkxMmYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.q5U54nqdH5ae_FvM8vMBHVk-M3HO5Kl_OhFkzm29XOA)
{
"kamrul1157024/nvim-pr",
config = function()
require("nvim-pr").setup()
vim.keymap.set("n", "<leader>gprv", ":PR open<CR>", { desc = "View PR in the editor" })
vim.keymap.set("n", "<leader>gprb", ":PR open_in_browser<CR>", { desc = "Open PR in the browser" })
end,
dependencies = {
"MunifTanjim/nui.nvim",
"nvim-lua/plenary.nvim",
},
}