Skip to content

Commit 82c622b

Browse files
committed
fix(health): check if setup has been called
1 parent 8bf8358 commit 82c622b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lua/crates/health.lua

+5
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ local function binary_installed(name)
2323
end
2424

2525
function M.check()
26+
if not state.cfg then
27+
vim.health.info("skipping health check, setup hasn't been called")
28+
return
29+
end
30+
2631
vim.health.start("Checking plugins")
2732
if lualib_installed("null-ls") then
2833
vim.health.ok("null-ls.nvim installed")

0 commit comments

Comments
 (0)