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 = { { "gs", "G" }, -- G.it S.tatus { "gd", "G difftool" }, -- G.it D.iff { "gm", "Gvdiffsplit!" }, -- G.it M.erge { "gc", "G commit" }, -- G.it C.ommit { "gu", "G push" }, -- G.it push U.pstream { "gp", "G pull" }, -- G.it P.ull { "gf", "G fetch" }, -- G.it F.etch }, config = function() -- Use > and < to fix merge conflicts (keep the cursor in the middle of the screen) -- vim.api.nvim_set_keymap("n", ">", "diffg //2diffupdate", { noremap = true, silent = true }) -- vim.api.nvim_set_keymap("n", "<", "diffg //3diffupdate", { noremap = true, silent = true }) -- Use } and { to force the entire file -- vim.api.nvim_set_keymap( -- "n", -- "}", -- "hGwrite!diffupdate", -- { noremap = true, silent = true } -- ) -- vim.api.nvim_set_keymap( -- "n", -- "{", -- "lGwrite!diffupdate", -- { noremap = true, silent = true } -- ) end, }