Skip to content

Commit

Permalink
perf(hacks): disable redraw hack. Should not be needed. If it breaks …
Browse files Browse the repository at this point in the history
…a plugin, then it should be fixed there.
  • Loading branch information
folke committed Nov 26, 2024
1 parent 791eb70 commit 956e3ac
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions lua/noice/message/router.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ local M = {}
---@type NoiceRoute[]
M._routes = {}
M._tick = 0
M._need_redraw = false
---@type fun()|Interval?
M._updater = nil
M._updating = false
Expand Down Expand Up @@ -224,7 +223,6 @@ function M.update()

if not vim.tbl_isempty(updates) then
Util.stats.track("router.update.updated")
M._need_redraw = true
Util.redraw()
end

Expand Down
2 changes: 1 addition & 1 deletion lua/noice/util/hacks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function M.enable()
M.reset_augroup()
M.fix_cmp()
M.fix_vim_sleuth()
M.fix_redraw()
-- M.fix_redraw()

-- Hacks for Neovim < 0.10
if vim.fn.has("nvim-0.10") == 0 then
Expand Down

0 comments on commit 956e3ac

Please sign in to comment.