aboutsummaryrefslogtreecommitdiffstats
path: root/lua/alpha/plugins/fugitive.lua
blob: bcf7ea862bb47faba771b744000cb00c2f06ceaa (plain)
1
2
3
4
5
6
7
8
9
10
11
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
}