mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	fix(health): message should mention "vim.provider" #33095
This commit is contained in:
		| @@ -11,7 +11,7 @@ the providers and how to install them. | |||||||
| 						*E319* | 						*E319* | ||||||
| Use of a feature requiring a missing provider is an error: > | 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. | Run the |:checkhealth| command, and review the sections below. | ||||||
|  |  | ||||||
|   | |||||||
| @@ -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) | typval_T eval_call_provider(char *provider, char *method, list_T *arguments, bool discard) | ||||||
| { | { | ||||||
|   if (!eval_has_provider(provider, false)) { |   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); |           provider); | ||||||
|     return (typval_T){ |     return (typval_T){ | ||||||
|       .v_type = VAR_NUMBER, |       .v_type = VAR_NUMBER, | ||||||
|   | |||||||
| @@ -245,13 +245,13 @@ describe('vim.health', function() | |||||||
|   end) |   end) | ||||||
| end) | end) | ||||||
|  |  | ||||||
| describe(':checkhealth provider', function() | describe(':checkhealth vim.provider', function() | ||||||
|   it("works correctly with a wrongly configured 'shell'", function() |   it("works correctly with a wrongly configured 'shell'", function() | ||||||
|     clear() |     clear() | ||||||
|     command([[set shell=echo\ WRONG!!!]]) |     command([[set shell=echo\ WRONG!!!]]) | ||||||
|     command('let g:loaded_perl_provider = 0') |     command('let g:loaded_perl_provider = 0') | ||||||
|     command('let g:loaded_python3_provider = 0') |     command('let g:loaded_python3_provider = 0') | ||||||
|     command('checkhealth provider') |     command('checkhealth vim.provider') | ||||||
|     eq(nil, string.match(curbuf_contents(), 'WRONG!!!')) |     eq(nil, string.match(curbuf_contents(), 'WRONG!!!')) | ||||||
|   end) |   end) | ||||||
| end) | end) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Eisuke Kawashima
					Eisuke Kawashima