fix: revert dev

This commit is contained in:
Barrett Ruth 2026-03-13 17:58:49 -04:00
parent e8ebe154a1
commit c69f297dd5
4 changed files with 160 additions and 12 deletions

View file

@ -59,7 +59,7 @@ function M.check()
end
local sync_paths = vim.fn.globpath(vim.o.runtimepath, 'lua/pending/sync/*.lua', false, true)
if #sync_paths == 0 then
if #sync_paths == 0 and vim.tbl_isempty(require('pending').registered_backends()) then
vim.health.info('No sync backends found')
else
for _, path in ipairs(sync_paths) do
@ -70,6 +70,12 @@ function M.check()
backend.health()
end
end
for rname, rbackend in pairs(require('pending').registered_backends()) do
if type(rbackend.health) == 'function' then
vim.health.start('pending.nvim: sync/' .. rname)
rbackend.health()
end
end
end
end