vim.keymap.set("n", "", ":Git5") vim.keymap.set("n", "gb", ":Git blame") vim.keymap.set("n", "gB", ":Git blame --ignore-revs-file=.git-blame-ignore-revs") vim.api.nvim_create_autocmd("WinClosed", { group = vim.api.nvim_create_augroup("conf_fugitive_prevwin", {}), callback = function(args) local win = tonumber(args.match) if win == vim.api.nvim_get_current_win() and vim.bo.filetype == "fugitive" then vim.cmd.wincmd("p") end end, })