aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEisuke Kawashima <e.kawaschima+github@gmail.com>2025-03-28 08:19:54 +0900
committerGitHub <noreply@github.com>2025-03-27 16:19:54 -0700
commit07f048a8d764b075cb73dca4002b4743841faaa9 (patch)
treeb3d82ebe955a948831a3ce1bf5e85345bb9f55ac
parente1f1386d5e5db1d10e42f7779c1af1cce2690c78 (diff)
downloadrneovim-07f048a8d764b075cb73dca4002b4743841faaa9.tar.gz
rneovim-07f048a8d764b075cb73dca4002b4743841faaa9.tar.bz2
rneovim-07f048a8d764b075cb73dca4002b4743841faaa9.zip
fix(health): message should mention "vim.provider" #33095
-rw-r--r--runtime/doc/provider.txt2
-rw-r--r--src/nvim/eval.c2
-rw-r--r--test/functional/plugin/health_spec.lua4
3 files changed, 4 insertions, 4 deletions
diff --git a/runtime/doc/provider.txt b/runtime/doc/provider.txt
index 38bf6281d3..7d9764d7d5 100644
--- a/runtime/doc/provider.txt
+++ b/runtime/doc/provider.txt
@@ -11,7 +11,7 @@ the providers and how to install them.
*E319*
Use of a feature requiring a missing provider is an error: >
- E319: No "foo" provider found. Run ":checkhealth provider"
+ E319: No "foo" provider found. Run ":checkhealth vim.provider"
Run the |:checkhealth| command, and review the sections below.
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index ee5dd25e93..3f73074333 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -8530,7 +8530,7 @@ void script_host_eval(char *name, typval_T *argvars, typval_T *rettv)
typval_T eval_call_provider(char *provider, char *method, list_T *arguments, bool discard)
{
if (!eval_has_provider(provider, false)) {
- semsg("E319: No \"%s\" provider found. Run \":checkhealth provider\"",
+ semsg("E319: No \"%s\" provider found. Run \":checkhealth vim.provider\"",
provider);
return (typval_T){
.v_type = VAR_NUMBER,
diff --git a/test/functional/plugin/health_spec.lua b/test/functional/plugin/health_spec.lua
index 3632774bff..c9ec382d93 100644
--- a/test/functional/plugin/health_spec.lua
+++ b/test/functional/plugin/health_spec.lua
@@ -245,13 +245,13 @@ describe('vim.health', function()
end)
end)
-describe(':checkhealth provider', function()
+describe(':checkhealth vim.provider', function()
it("works correctly with a wrongly configured 'shell'", function()
clear()
command([[set shell=echo\ WRONG!!!]])
command('let g:loaded_perl_provider = 0')
command('let g:loaded_python3_provider = 0')
- command('checkhealth provider')
+ command('checkhealth vim.provider')
eq(nil, string.match(curbuf_contents(), 'WRONG!!!'))
end)
end)