Skip to content

Commit

Permalink
fix(statusline): schedule statusline refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed May 30, 2024
1 parent bc0a194 commit f000daa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/trouble/api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ function M.statusline(opts)
section.on_update = function()
status = nil
if package.loaded["lualine"] then
require("lualine").refresh()
vim.schedule(function()
require("lualine").refresh()
end)
else
vim.cmd.redrawstatus()
end
Expand Down

0 comments on commit f000daa

Please sign in to comment.