From fb1bbd28686120b44da91bff625e2c07bdcfd205 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 19 Jun 2024 06:45:19 +0100 Subject: [PATCH] Open ":G status" with Fugitive in its own buffer Not in a split. --- plugin/fugitive.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin/fugitive.lua b/plugin/fugitive.lua index 18df603..4aded48 100644 --- a/plugin/fugitive.lua +++ b/plugin/fugitive.lua @@ -1,5 +1,7 @@ vim.keymap.set("n", "gc", "Git commitK") -vim.keymap.set("n", "gs", "GitK") + +-- Open the ":Git" window in its own buffer, not a split. +vim.keymap.set("n", "gs", "0Git") vim.api.nvim_create_autocmd("BufWinEnter", { pattern = "*",