aboutsummaryrefslogtreecommitdiff
path: root/runtime/autoload/provider/ruby.vim
diff options
context:
space:
mode:
authorSathya Pramodh <94102031+sathya-pramodh@users.noreply.github.com>2025-03-29 23:36:23 +0530
committerGitHub <noreply@github.com>2025-03-29 11:06:23 -0700
commitb4906577c9f1f0a8bcfa096288d1a56630b142f3 (patch)
treea2481918cf317e61a51fadf1fe5af248bc38d2e8 /runtime/autoload/provider/ruby.vim
parentf4fc769c81af6f8d9235d59aec75cfe7c104b3ce (diff)
downloadrneovim-b4906577c9f1f0a8bcfa096288d1a56630b142f3.tar.gz
rneovim-b4906577c9f1f0a8bcfa096288d1a56630b142f3.tar.bz2
rneovim-b4906577c9f1f0a8bcfa096288d1a56630b142f3.zip
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.
Diffstat (limited to 'runtime/autoload/provider/ruby.vim')
-rw-r--r--runtime/autoload/provider/ruby.vim2
1 files changed, 1 insertions, 1 deletions
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('<sfile>:p:h') . '/script_host.rb'
call v:lua.require'vim.provider.ruby'.start(s:plugin_path)