Open ":G status" with Fugitive in its own buffer

Not in a split.
This commit is contained in:
Oliver Davies 2024-06-19 06:45:19 +01:00
parent f524294339
commit fb1bbd2868

View file

@ -1,5 +1,7 @@
vim.keymap.set("n", "<leader>gc", "<cmd>Git commit<cr><C-w>K") vim.keymap.set("n", "<leader>gc", "<cmd>Git commit<cr><C-w>K")
vim.keymap.set("n", "<leader>gs", "<cmd>Git<cr><C-w>K")
-- Open the ":Git" window in its own buffer, not a split.
vim.keymap.set("n", "<leader>gs", "<cmd>0Git<cr>")
vim.api.nvim_create_autocmd("BufWinEnter", { vim.api.nvim_create_autocmd("BufWinEnter", {
pattern = "*", pattern = "*",