From 52878a687bbcfddeb3a0c2dbb6aa049f54e26411 Mon Sep 17 00:00:00 2001 From: dsisnero Date: Fri, 14 Jul 2023 13:16:49 -0600 Subject: [PATCH 1/2] fix: Need to setup neogit before it runs Add config setup to setup neogit so it runs --- lua/astrocommunity/git/neogit/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/astrocommunity/git/neogit/init.lua b/lua/astrocommunity/git/neogit/init.lua index 18ebddffc..f3a68bea3 100644 --- a/lua/astrocommunity/git/neogit/init.lua +++ b/lua/astrocommunity/git/neogit/init.lua @@ -10,6 +10,7 @@ return { { "nvim-lua/plenary.nvim" }, }, event = "User AstroGitFile", + config = function(_, opts) require("neogit").setup(opts) end, keys = { { prefix .. "nt", "Neogit", desc = "Open Neogit Tab Page" }, { prefix .. "nc", "Neogit commit", desc = "Open Neogit Commit Page" }, From 78ada15fdd1643bc43225a1f47d082fe92b73a22 Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Fri, 14 Jul 2023 16:00:37 -0400 Subject: [PATCH 2/2] Simplify setup call --- lua/astrocommunity/git/neogit/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/astrocommunity/git/neogit/init.lua b/lua/astrocommunity/git/neogit/init.lua index f3a68bea3..f72104bf0 100644 --- a/lua/astrocommunity/git/neogit/init.lua +++ b/lua/astrocommunity/git/neogit/init.lua @@ -10,7 +10,7 @@ return { { "nvim-lua/plenary.nvim" }, }, event = "User AstroGitFile", - config = function(_, opts) require("neogit").setup(opts) end, + opts = {}, keys = { { prefix .. "nt", "Neogit", desc = "Open Neogit Tab Page" }, { prefix .. "nc", "Neogit commit", desc = "Open Neogit Commit Page" },