revert(status): fix git signs refresh

This commit is contained in:
Micah Halter
2023-07-01 10:02:51 -04:00
parent ad6f5785e3
commit 14d7b5029e
+3 -1
View File
@@ -196,7 +196,8 @@ function M.git_branch(opts)
end
end,
},
update = { "User", pattern = { "GitSignsUpdate", "AstroGitFile" } },
update = { "User", pattern = "GitSignsUpdate" },
init = init.update_events { "BufEnter" },
}, opts)
return M.builder(status_utils.setup_providers(opts, { "git_branch" }))
end
@@ -221,6 +222,7 @@ function M.git_diff(opts)
},
surround = { separator = "left", color = "git_diff_bg", condition = condition.git_changed },
update = { "User", pattern = "GitSignsUpdate" },
init = init.update_events { "BufEnter" },
}, opts)
return M.builder(status_utils.setup_providers(opts, { "added", "changed", "removed" }, function(p_opts, p)
local out = status_utils.build_provider(p_opts, p)