Skip to content

Commit

Permalink
perf(on_colorscheme): improve on_colorscheme
Browse files Browse the repository at this point in the history
  • Loading branch information
rebelot committed Sep 3, 2022
1 parent 510950a commit 1f181fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/heirline/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,7 @@ end
function M.on_colorscheme(colors)
colors = colors or {}
require("heirline").reset_highlights()
require('heirline').clear_colors()
require("heirline").load_colors(colors)
require("heirline").statusline:broadcast(function(self)
self._win_cache = nil
Expand Down

0 comments on commit 1f181fb

Please sign in to comment.