chaning fugitive keybindings to make push more conscious
This commit is contained in:
parent
584c826226
commit
f761a740a4
|
@ -16,12 +16,12 @@ return {
|
|||
|
||||
local bufnr = vim.api.nvim_get_current_buf()
|
||||
local opts = {buffer = bufnr, remap = false}
|
||||
vim.keymap.set("n", "<leader>p", function()
|
||||
vim.keymap.set("n", "<leader>P", function()
|
||||
vim.cmd.Git('push')
|
||||
end, opts)
|
||||
|
||||
-- rebase always
|
||||
vim.keymap.set("n", "<leader>P", function()
|
||||
vim.keymap.set("n", "<leader>p", function()
|
||||
vim.cmd.Git({'pull', '--rebase'})
|
||||
end, opts)
|
||||
|
||||
|
|
Loading…
Reference in New Issue