Skip to content

Commit

Permalink
fix(nvim): push and open pr on <leader>o in fugitive
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
  • Loading branch information
caarlos0 committed Mar 31, 2024
1 parent 7305cc7 commit f481159
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/neovim/config/lua/user/fugitive.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ vim.api.nvim_create_autocmd("FileType", {
end, "Git push tracking origin")

keymap("<leader>o", function()
vim.cmd.Git("push")
vim.cmd.Git("pr")
end, "Git push & open browser in PR view")

Expand Down

0 comments on commit f481159

Please sign in to comment.