-- https://github.com/tpope/vim-fugitive local function git_status_tab() vim.cmd.tabnew() vim.cmd("leftabove vertical G") vim.cmd("vertical resize 50") vim.cmd.set("wfw") end ---@type LazyPluginSpec return { "tpope/vim-fugitive", event = "VeryLazy", ---@type LazyKeysSpec[] keys = { { "gd", vim.cmd.Gvdiffsplit, 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", toggle_git_status, mode = "n", }, }, }