summaryrefslogtreecommitdiff
path: root/lua/ben/plugins/fugitive.lua
blob: 690a9580405343faa1f286c136d3ce5ca00d62c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
return {
	"tpope/vim-fugitive",
	dependencies = "tpope/vim-rhubarb",
	-- Only enable on systems with git installed
	cond = function()
		return vim.fn.executable("git") == 1
	end,
	-- Only load when using one of the following commands:
	keys = {
		{ "<leader>gs", "<cmd>G<CR>" }, -- G.it S.tatus
		{ "<leader>gd", "<cmd>G difftool<CR>" }, -- G.it D.iff
		{ "<leader>gm", "<cmd>Gvdiffsplit!<CR>" }, -- G.it M.erge
		{ "<leader>gc", "<cmd>G commit<CR>" }, -- G.it C.ommit
		{ "<leader>gu", "<cmd>G push<CR>" }, -- G.it push U.pstream
		{ "<leader>gp", "<cmd>G pull<CR>" }, -- G.it P.ull
	},
}