summaryrefslogtreecommitdiff
path: root/lua/bee/plugins/git.lua
diff options
context:
space:
mode:
authorbee <beebeeb5k@gmail.com>2026-05-05 22:37:10 +0530
committerbee <beebeeb5k@gmail.com>2026-05-05 22:37:10 +0530
commit9365a8e96827cbf7bc5adad6d29bcd05b4d761b2 (patch)
tree0998a5dcfc4517e4112a2c589e04ac0dbc1e011b /lua/bee/plugins/git.lua
parent0c50f17133b90c60735f1f51943f51f60372bdd3 (diff)
Migrate from nixcats to nix-wrapper-modules
Diffstat (limited to 'lua/bee/plugins/git.lua')
-rw-r--r--lua/bee/plugins/git.lua62
1 files changed, 62 insertions, 0 deletions
diff --git a/lua/bee/plugins/git.lua b/lua/bee/plugins/git.lua
new file mode 100644
index 0000000..78be9b4
--- /dev/null
+++ b/lua/bee/plugins/git.lua
@@ -0,0 +1,62 @@
+return {
+ {
+ "vim-fugitive",
+ auto_enable = {
+ "vim-fugitive",
+ "vim-rhubarb",
+ },
+ keys = { { "<leader>gg", "<CMD>G<CR>", desc = "Open git" } },
+ cmd = {
+ "G",
+ "Git",
+ "Gdiffsplit",
+ "Gvdiffsplit",
+ "Gedit",
+ "Gread",
+ "Gwrite",
+ "Ggrep",
+ "GMove",
+ "Glgrep",
+ "GRename",
+ "GDelete",
+ "GRemove",
+ "GBrowse",
+ "DiffviewOpen",
+ "DiffviewClose",
+ "DiffviewToggleFiles",
+ "DiffviewFocusFiles",
+ "DiffviewRefresh",
+ "DiffviewFileHistory",
+ },
+ load = function(name)
+ nixInfo.lze.loaders.multi({
+ name,
+ "vim-rhubarb",
+ "diffview.nvim",
+ })
+ end,
+ },
+ {
+ "mini.diff",
+ auto_enable = true,
+ event = "DeferredUIEnter",
+ after = function(_)
+ require("mini.diff").setup({
+ view = {
+ style = "sign",
+ signs = { add = "│", change = "~", delete = "-" },
+ priority = 9,
+ },
+ mappings = {
+ apply = "",
+ reset = "",
+ textobject = "",
+ goto_first = "",
+ goto_prev = "",
+ goto_next = "",
+ goto_last = "",
+ },
+ })
+ end,
+ },
+}