refactor(nvim): ensure Neogit's status is refreshed on BufEnter
This commit is contained in:
parent
bb42e615b7
commit
af26b037d3
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user