Skip to content

Commit

Permalink
feat: add user event to git branch
Browse files Browse the repository at this point in the history
  • Loading branch information
sontungexpt committed Oct 29, 2023
1 parent c61934d commit c6a8014
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/sttusline/components/git-branch.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ GitBranch.set_config {
icon = "",
}
GitBranch.set_event { "BufEnter" }
GitBranch.set_user_event { "VeryLazy", "GitSignsUpdate" }

local get_branch = function()
local git_dir = vim.fn.finddir(".git", ".;")
Expand Down

0 comments on commit c6a8014

Please sign in to comment.