mirror of
https://github.com/neovim/neovim.git
synced 2026-08-14 03:04:54 +00:00
fix(zip): do not warn when zip.lua is disabled
This commit is contained in:
@@ -31,16 +31,14 @@ local function check_active()
|
||||
|
||||
if legacy then
|
||||
health.info('`old-zip` is loaded, so it handles archives instead of zip.lua')
|
||||
health.info('zip.lua yields to it and removes its own autocommands')
|
||||
health.info('zip.lua defers to it while it is loaded')
|
||||
-- `old-zip` shells out to the same backend.
|
||||
return true
|
||||
end
|
||||
|
||||
if not builtin then
|
||||
if vim.g.loaded_nvim_zip_plugin ~= nil then
|
||||
health.warn('zip.lua is disabled by `g:loaded_nvim_zip_plugin`', {
|
||||
'Unset it before startup to enable the builtin zip plugin.',
|
||||
})
|
||||
health.info('Disabled (`g:loaded_nvim_zip_plugin` is set).')
|
||||
else
|
||||
health.warn('No zip plugin is active')
|
||||
end
|
||||
|
||||
@@ -44,7 +44,7 @@ describe(':checkhealth', function()
|
||||
it('getcompletion()', function()
|
||||
clear { args = { '-u', 'NORC', '+set runtimepath+=test/functional/fixtures' } }
|
||||
|
||||
eq('vim.deprecated', getcompletion('vim', 'checkhealth')[1])
|
||||
eq('nvim.zip', getcompletion('vim', 'checkhealth')[1])
|
||||
eq('vim.provider', getcompletion('vim.prov', 'checkhealth')[1])
|
||||
eq('vim.lsp', getcompletion('vim.ls', 'checkhealth')[1])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user