summaryrefslogtreecommitdiff
path: root/lua/plugins/fugitive.lua
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-06-17 21:24:17 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2024-06-17 21:24:17 -0400
commitde2aaa7fd5a90a81de8d216232bb39830ff6041d (patch)
tree8c6887de318cc13345d5377b3b27deb738bed5e6 /lua/plugins/fugitive.lua
parent7662376a0498aa3feb830a2ec7b3126706f49f2f (diff)
parent3990159461b650064cbb2e385b17a286b657790d (diff)
Merge branch 'master' of github.com:ChausseBenjamin/neovim-conf
Diffstat (limited to 'lua/plugins/fugitive.lua')
-rw-r--r--lua/plugins/fugitive.lua15
1 files changed, 3 insertions, 12 deletions
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 {
{ "<leader>gu", "<cmd>G push<CR>" }, -- G.it push U.pstream
{ "<leader>gp", "<cmd>G pull<CR>" }, -- G.it P.ull
{ "<leader>gf", "<cmd>G fetch<CR>" }, -- G.it F.etch
+ { "<leader>ds", "<cmd>Gvdiffsplit!<CR>" },
+ { "<leader>dh", "<cmd>diffget //2<CR>" },
+ { "<leader>dl", "<cmd>diffget //3<CR>" },
},
}