Skip to content

Commit

Permalink
feat: added option to disable the health checker
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Oct 26, 2022
1 parent a6ad24e commit a2f6e4c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lua/noice/config/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ M.defaults = {
["{%S-}"] = "@parameter",
},
},
health = {
checker = true, -- Disable if you don't want health checks to run
},
throttle = 1000 / 30, -- how frequently does Noice need to check for ui updates? This has no effect when in blocking mode.
---@type NoiceConfigViews
views = {}, ---@see section on views
Expand Down
5 changes: 4 additions & 1 deletion lua/noice/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ function M.enable()
require("noice.util.hacks").enable()
require("noice.ui").enable()
require("noice.message.router").enable()
Health.checker()

if Config.options.health.checker then
Health.checker()
end
end

---@param msg string
Expand Down

0 comments on commit a2f6e4c

Please sign in to comment.