refactor(nvim): ensure Neogit's status is refreshed on BufEnter

This commit is contained in:
Price Hiller 2024-03-15 21:56:42 -05:00
parent bb42e615b7
commit af26b037d3
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB

View File

@ -36,6 +36,13 @@ return {
end, end,
}) })
vim.api.nvim_create_autocmd("BufEnter", {
pattern = "*Neogit*",
callback = function()
require("neogit").dispatch_refresh()
end
})
---@type NeogitConfig ---@type NeogitConfig
return { return {
disable_insert_on_commit = "auto", disable_insert_on_commit = "auto",