diff --git a/dots/.config/nvim/lua/plugins/configs/git.lua b/dots/.config/nvim/lua/plugins/configs/git.lua index 00ad2644..49650397 100644 --- a/dots/.config/nvim/lua/plugins/configs/git.lua +++ b/dots/.config/nvim/lua/plugins/configs/git.lua @@ -36,6 +36,13 @@ return { end, }) + vim.api.nvim_create_autocmd("BufEnter", { + pattern = "*Neogit*", + callback = function() + require("neogit").dispatch_refresh() + end + }) + ---@type NeogitConfig return { disable_insert_on_commit = "auto",