return { lazy = false, "tpope/vim-fugitive", dependencies = "tpope/vim-rhubarb", config = function() -- The following seems to break harpoon -- it's supposed to auto-cd to the git root on vim startup -- local handle = io.popen('git rev-parse --is-inside-work-tree 2> /dev/null') -- if handle then -- local result = handle:read('*a') -- handle:close() -- if result and result:match('true') then -- vim.cmd([[Gcd]]) -- end -- end 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 }, }