From b969172234b77b06bc35c8f3ceb0319ad07ac4ca Mon Sep 17 00:00:00 2001 From: Simon Lasbrugnas Date: Mon, 27 Nov 2023 13:22:39 +0100 Subject: [PATCH] fix(fugitive): allow fugitive to load when no files are opened Add VeryLazy event to fugitive in order to load it even when files aren't opened --- lua/plugins/git.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/plugins/git.lua b/lua/plugins/git.lua index d273789..16c046c 100644 --- a/lua/plugins/git.lua +++ b/lua/plugins/git.lua @@ -2,7 +2,7 @@ return { -- Fugitive { "tpope/vim-fugitive", - event = { "BufReadPost", "BufNewFile", "BufWritePre" }, + event = { "BufReadPost", "BufNewFile", "BufWritePre", "VeryLazy" }, config = function() local function map(mode, l, r, desc) vim.keymap.set(mode, l, r, { silent = true, noremap = true, desc = desc })