Skip to content

Commit

Permalink
fix(health): only check for lazyredraw during startup
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Oct 29, 2022
1 parent e853ec4 commit 46a40bd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lua/noice/health.lua
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,11 @@ function M.check(opts)
end

if vim.go.lazyredraw then
log.warn(
"You have enabled 'lazyredraw' (see `:h 'lazyredraw'`)\nThis is only meant to be set temporarily.\nYou'll experience issues using Noice."
)
if not opts.checkhealth then
log.warn(
"You have enabled 'lazyredraw' (see `:h 'lazyredraw'`)\nThis is only meant to be set temporarily.\nYou'll experience issues using Noice."
)
end
else
log.ok("**vim.go.lazyredraw** is not enabled")
end
Expand Down

0 comments on commit 46a40bd

Please sign in to comment.