From 46a40bde471a15d4c5bdd959327bd35aafe0030f Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Sat, 29 Oct 2022 13:06:32 +0200 Subject: [PATCH] fix(health): only check for lazyredraw during startup --- lua/noice/health.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lua/noice/health.lua b/lua/noice/health.lua index 0ffbaccc..395a97ad 100644 --- a/lua/noice/health.lua +++ b/lua/noice/health.lua @@ -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