summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-07-15 13:12:47 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2024-07-15 13:12:47 -0400
commit1e8c9c74664f4e8a9f7473fc3a9dfcf931172520 (patch)
treeac8320c4198a462a50342eb19c1b694fb3cc6578
parentb6d670c046baa59f3fa2dc4ef03150da8a1f2693 (diff)
Add yadm to fugitive
-rw-r--r--lua/plugins/fugitive.lua42
1 files changed, 27 insertions, 15 deletions
diff --git a/lua/plugins/fugitive.lua b/lua/plugins/fugitive.lua
index 71d7c0a..e52a4c6 100644
--- a/lua/plugins/fugitive.lua
+++ b/lua/plugins/fugitive.lua
@@ -1,18 +1,30 @@
return {
- lazy = false,
- "tpope/vim-fugitive",
- dependencies = "tpope/vim-rhubarb",
- config = function() 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>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
- { "<leader>gf", "<cmd>G fetch<CR>" }, -- G.it F.etch
- { "<leader>ds", "<cmd>Gvdiffsplit!<CR>" }, -- G.it D.iff S.plit
- { "<leader>dh", "<cmd>diffget //2<CR>" },
- { "<leader>dl", "<cmd>diffget //3<CR>" },
+ {
+ lazy = false,
+ "tpope/vim-fugitive",
+ dependencies = "tpope/vim-rhubarb",
+ config = function() 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>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
+ { "<leader>gf", "<cmd>G fetch<CR>" }, -- G.it F.etch
+ { "<leader>ds", "<cmd>Gvdiffsplit!<CR>" }, -- G.it D.iff S.plit
+ { "<leader>dh", "<cmd>diffget //2<CR>" },
+ { "<leader>dl", "<cmd>diffget //3<CR>" },
+ },
+ },
+ {
+ "takinoy/yadm.nvim",
+ dependencies = "tpope/vim-fugitive",
+ event = { "BufReadPre" },
+ config = function()
+ require("yadm").setup({
+ yadm_dir = vim.fn.expand("$XDG_DATA_HOME/yadm/repo.git"),
+ })
+ end,
},
}