fix: revert dev
This commit is contained in:
parent
e8ebe154a1
commit
c69f297dd5
4 changed files with 160 additions and 12 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue