add autocmd to reload buffers when neogit change something

This commit is contained in:
Antoine Vaure 2025-06-06 17:42:02 +02:00
parent 2a5b5bb6ce
commit 649e32838d

View file

@ -382,6 +382,12 @@ local plugins = {
}
}
})
vim.api.nvim_create_autocmd("User", {
pattern = "NeogitStatusRefreshed",
callback = function()
vim.cmd("set autoread | checktime")
end
})
end
},
{