From 694bb0aba27bebe4742d063dd4b2f172ad0b077a Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Tue, 25 Oct 2022 09:03:04 -0500 Subject: [PATCH] refactor(nvim): use lua api for neogit --- dots/.nvim-environments/primary/config/lua/plugins/mappings.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dots/.nvim-environments/primary/config/lua/plugins/mappings.lua b/dots/.nvim-environments/primary/config/lua/plugins/mappings.lua index 96f99590..e3a7665d 100755 --- a/dots/.nvim-environments/primary/config/lua/plugins/mappings.lua +++ b/dots/.nvim-environments/primary/config/lua/plugins/mappings.lua @@ -167,7 +167,7 @@ wk.register({ name = "Git", }, }, { prefix = "" }) -vim.keymap.set("n", "gg", ":Neogit", { silent = true, desc = "Neogit: Open" }) +vim.keymap.set("n", "gg", require('neogit').open, { silent = true, desc = "Neogit: Open" }) -- Gitsigns Mappings vim.keymap.set("n", "]g", "Gitsigns next_hunk", { silent = true, desc = "Gitsigns: Next Hunk" })