Skip to content

Commit 46a40bd

Browse files
committed
fix(health): only check for lazyredraw during startup
1 parent e853ec4 commit 46a40bd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lua/noice/health.lua

+5-3
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,11 @@ function M.check(opts)
7272
end
7373

7474
if vim.go.lazyredraw then
75-
log.warn(
76-
"You have enabled 'lazyredraw' (see `:h 'lazyredraw'`)\nThis is only meant to be set temporarily.\nYou'll experience issues using Noice."
77-
)
75+
if not opts.checkhealth then
76+
log.warn(
77+
"You have enabled 'lazyredraw' (see `:h 'lazyredraw'`)\nThis is only meant to be set temporarily.\nYou'll experience issues using Noice."
78+
)
79+
end
7880
else
7981
log.ok("**vim.go.lazyredraw** is not enabled")
8082
end

0 commit comments

Comments
 (0)