refactor(health): refactor provider healthchecks

* Prefer pure Lua functions over vim.fn
* Split up provider healthchecks into separate modules to help manage
  complexity
This commit is contained in:
Gregory Anders
2023-04-10 16:48:58 -06:00
committed by dundargoc
parent b49d4e18a6
commit 164f1ea06d
8 changed files with 930 additions and 917 deletions

View File

@@ -36,7 +36,7 @@ describe(':checkhealth', function()
it('completions can be listed via getcompletion()', function()
clear()
eq('nvim', getcompletion('nvim', 'checkhealth')[1])
eq('provider', getcompletion('prov', 'checkhealth')[1])
eq('provider.clipboard', getcompletion('prov', 'checkhealth')[1])
eq('vim.lsp', getcompletion('vim.ls', 'checkhealth')[1])
neq('vim', getcompletion('^vim', 'checkhealth')[1]) -- should not complete vim.health
end)