Skip to content

Commit 2177769

Browse files
committed
refactor(health): split :checkhealth output into sections
Group reports under separate vim.health.start() headers so each category (environment, providers, picker, persist, ui) is visually distinct in the :checkhealth peekstack output.
1 parent 67fb760 commit 2177769

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

lua/peekstack/health.lua

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,7 @@ local function report_treesitter(cfg)
170170
end
171171

172172
function M.check()
173-
vim.health.start("peekstack")
174-
173+
vim.health.start("peekstack: environment")
175174
report_environment()
176175

177176
local ok, cfg_mod = pcall(require, "peekstack.config")
@@ -181,9 +180,16 @@ function M.check()
181180
end
182181
local cfg = cfg_mod.get()
183182

183+
vim.health.start("peekstack: providers")
184184
report_providers(cfg)
185+
186+
vim.health.start("peekstack: picker")
185187
report_picker(cfg)
188+
189+
vim.health.start("peekstack: persist")
186190
report_persist(cfg)
191+
192+
vim.health.start("peekstack: ui")
187193
report_close_events(cfg)
188194
report_treesitter(cfg)
189195
end

0 commit comments

Comments
 (0)