Skip to content

Commit

Permalink
chore(component): clean up function schedules
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Mar 7, 2024
1 parent 87716d0 commit d51b2e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/astroui/status/component.lua
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ function M.mode(opts)
update = {
"ModeChanged",
pattern = "*:*",
callback = vim.schedule_wrap(function() vim.cmd.redrawstatus() end),
callback = function() vim.schedule(vim.cmd.redrawstatus) end,
},
}, opts)
if not opts["mode_text"] then opts.str = { str = " " } end
Expand Down Expand Up @@ -295,7 +295,7 @@ function M.lsp(opts)
update = {
"User",
pattern = "AstroLspProgress",
callback = vim.schedule_wrap(function() vim.cmd.redrawstatus() end),
callback = function() vim.schedule(vim.cmd.redrawstatus) end,
},
},
lsp_client_names = {
Expand All @@ -306,7 +306,7 @@ function M.lsp(opts)
"BufEnter",
"FileType",
"VimResized",
callback = vim.schedule_wrap(function() vim.cmd.redrawstatus() end),
callback = function() vim.schedule(vim.cmd.redrawstatus) end,
},
icon = { kind = "ActiveLSP", padding = { right = 2 } },
},
Expand Down

0 comments on commit d51b2e8

Please sign in to comment.