aboutsummaryrefslogtreecommitdiffstats
path: root/lua/alpha/plugins/fugitive.lua
diff options
context:
space:
mode:
authorAriel D'Alessandro <ariel.dalessandro@auto1.com>2023-01-18 12:09:21 +0100
committerAriel D'Alessandro <ariel.dalessandro@auto1.com>2023-01-18 12:09:21 +0100
commitb3b19c488dfd8688fb3813f553b509cd87ad8462 (patch)
treeca7b243912e5904f6ea49e28789974d006de285f /lua/alpha/plugins/fugitive.lua
parenta04f9cd914055244f29e9ff17aa7a723f5db2405 (diff)
downloadnvim-conf-b3b19c488dfd8688fb3813f553b509cd87ad8462.tar.gz
nvim-conf-b3b19c488dfd8688fb3813f553b509cd87ad8462.zip
feat: improve lazy configuration on how loading plugins
Diffstat (limited to 'lua/alpha/plugins/fugitive.lua')
-rw-r--r--lua/alpha/plugins/fugitive.lua12
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
+}