diff options
Diffstat (limited to 'lua/alpha/plugins/fugitive.lua')
| -rw-r--r-- | lua/alpha/plugins/fugitive.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lua/alpha/plugins/fugitive.lua b/lua/alpha/plugins/fugitive.lua new file mode 100644 index 0000000..bcf7ea8 --- /dev/null +++ b/lua/alpha/plugins/fugitive.lua @@ -0,0 +1,12 @@ +return { + "tpope/vim-fugitive", + keys = { + {"<leader>ga", ":Git fetch --all -p<cr>"}, + {"<leader>gl", ":Git pull<cr>"}, + }, + cmd = { "G", "Git" }, + config = function () + vim.keymap.set("n", "<leader>gdh", ":diffget //2<cr>", nil) + vim.keymap.set("n", "<leader>gdl", ":diffget //3<cr>", nil) + end +} |