-- https://github.com/tpope/vim-fugitive local function git_status_tab() vim.cmd.tabnew() vim.cmd("leftabove vertical G") vim.cmd("vertical resize 60") vim.cmd.set("wfw") end ---@type LazyPluginSpec return { "tpope/vim-fugitive", lazy = true, event = "VimEnter", ---@type LazyKeysSpec[] keys = { { "gd", vim.cmd.Gdiffsplit, mode = "n" }, { "gc", function() vim.cmd.G("commit") end, mode = "n" }, { "ga", function() vim.cmd.G("commit --amend") end, mode = "n" }, { "gp", function() vim.cmd.G("push") end, mode = "n" }, { "gg", git_status_tab, mode = "n", remap = false }, }, }