From 8b43b07333bc8ae9ca347daffb09f2bdf50af3ed Mon Sep 17 00:00:00 2001 From: Javier López Date: Thu, 23 Sep 2021 20:33:43 -0500 Subject: feat(ex_checkhealth): provide function for command line completion Move away from providing completion with ExpandRTDir to ExpandGeneric providing the function get_healthcheck_name which caches the results for the current command line prompt. It does the almost the same thing the Vim function 'get_healthcheck' implemented in 'runtime/autoload/health.vim' does. --- test/functional/plugin/health_spec.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'test') diff --git a/test/functional/plugin/health_spec.lua b/test/functional/plugin/health_spec.lua index c5b8df488b..2a86391e76 100644 --- a/test/functional/plugin/health_spec.lua +++ b/test/functional/plugin/health_spec.lua @@ -36,6 +36,7 @@ describe(':checkhealth', function() clear() eq('nvim', getcompletion('nvim', 'checkhealth')[1]) eq('provider', getcompletion('prov', 'checkhealth')[1]) + eq('vim.lsp', getcompletion('vim.ls', 'checkhealth')[1]) end) end) -- cgit