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
This commit is contained in:
Simon Lasbrugnas 2023-11-27 13:22:39 +01:00
parent 43fa71bcd2
commit b969172234
Signed by untrusted user who does not match committer: simon
GPG key ID: 86039876BA6ED8DE

View file

@ -2,7 +2,7 @@ return {
-- Fugitive -- Fugitive
{ {
"tpope/vim-fugitive", "tpope/vim-fugitive",
event = { "BufReadPost", "BufNewFile", "BufWritePre" }, event = { "BufReadPost", "BufNewFile", "BufWritePre", "VeryLazy" },
config = function() config = function()
local function map(mode, l, r, desc) local function map(mode, l, r, desc)
vim.keymap.set(mode, l, r, { silent = true, noremap = true, desc = desc }) vim.keymap.set(mode, l, r, { silent = true, noremap = true, desc = desc })