From b3b19c488dfd8688fb3813f553b509cd87ad8462 Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Wed, 18 Jan 2023 12:09:21 +0100 Subject: feat: improve lazy configuration on how loading plugins --- lua/alpha/plugins/fugitive.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 lua/alpha/plugins/fugitive.lua (limited to 'lua/alpha/plugins/fugitive.lua') 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 = { + {"ga", ":Git fetch --all -p"}, + {"gl", ":Git pull"}, + }, + cmd = { "G", "Git" }, + config = function () + vim.keymap.set("n", "gdh", ":diffget //2", nil) + vim.keymap.set("n", "gdl", ":diffget //3", nil) + end +} -- cgit v1.2.3