From 3f19ba0936c0a3f30aaeee6c833463967a038923 Mon Sep 17 00:00:00 2001 From: Benjamin Chaussé Date: Mon, 17 Jun 2024 12:10:12 -0400 Subject: auto-cd to git root, dadbod, colorscheme tweaks --- lua/plugins/fugitive.lua | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'lua/plugins/fugitive.lua') diff --git a/lua/plugins/fugitive.lua b/lua/plugins/fugitive.lua index bbb5ef8..6bb5190 100644 --- a/lua/plugins/fugitive.lua +++ b/lua/plugins/fugitive.lua @@ -4,18 +4,6 @@ return { 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 = { @@ -26,5 +14,8 @@ return { { "gu", "G push" }, -- G.it push U.pstream { "gp", "G pull" }, -- G.it P.ull { "gf", "G fetch" }, -- G.it F.etch + { "ds", "Gvdiffsplit!" }, + { "dh", "diffget //2" }, + { "dl", "diffget //3" }, }, } -- cgit v1.2.3