Skip to content

Commit

Permalink
perf(heirline.nvim): use 'WinEnter' instead of 'CursorHold' event (#546)
Browse files Browse the repository at this point in the history
  • Loading branch information
linrongbin16 authored Apr 26, 2024
1 parent 27cff61 commit f971650
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/configs/rebelot/heirline-nvim/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,7 @@ local function update_git_branch()
end)
end

vim.api.nvim_create_autocmd({ "FocusGained", "TermLeave", "TermClose", "BufEnter", "CursorHold" }, {
vim.api.nvim_create_autocmd({ "FocusGained", "TermLeave", "TermClose", "BufEnter", "WinEnter" }, {
group = "heirline_augroup",
callback = update_git_branch,
})

0 comments on commit f971650

Please sign in to comment.