diff options
Diffstat (limited to 'lua')
-rw-r--r-- | lua/plugins/fugitive.lua | 42 |
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, }, } |