From b4906577c9f1f0a8bcfa096288d1a56630b142f3 Mon Sep 17 00:00:00 2001 From: Sathya Pramodh <94102031+sathya-pramodh@users.noreply.github.com> Date: Sat, 29 Mar 2025 23:36:23 +0530 Subject: fix(provider): misleading :checkhealth if user sets g:loaded_python3_provider=1 #32696 Problem: :checkhealth shows a confusing message if user sets g:loaded_python3_provider=1. Solution: - Show a warning if that var is set to 1. - Update provider modules to default to 0. Any user code that is checking for 1, is like already broken because these may be set to 2. --- runtime/autoload/provider/ruby.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/autoload/provider/ruby.vim') diff --git a/runtime/autoload/provider/ruby.vim b/runtime/autoload/provider/ruby.vim index 07b4aca23f..9bcbcfc9dd 100644 --- a/runtime/autoload/provider/ruby.vim +++ b/runtime/autoload/provider/ruby.vim @@ -11,6 +11,6 @@ function! provider#ruby#Call(method, args) abort endfunction let s:prog = v:lua.vim.provider.ruby.detect() -let g:loaded_ruby_provider = empty(s:prog) ? 1 : 2 +let g:loaded_ruby_provider = empty(s:prog) ? 0 : 2 let s:plugin_path = expand(':p:h') . '/script_host.rb' call v:lua.require'vim.provider.ruby'.start(s:plugin_path) -- cgit