aboutsummaryrefslogtreecommitdiff
path: root/runtime/autoload/provider/python3.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/python3.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/python3.vim')
-rw-r--r--runtime/autoload/provider/python3.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/autoload/provider/python3.vim b/runtime/autoload/provider/python3.vim
index 43c14122d0..8c8a466e0d 100644
--- a/runtime/autoload/provider/python3.vim
+++ b/runtime/autoload/provider/python3.vim
@@ -11,5 +11,5 @@ function! provider#python3#Require(host) abort
endfunction
let s:prog = v:lua.vim.provider.python.detect_by_module('neovim')
-let g:loaded_python3_provider = empty(s:prog) ? 1 : 2
+let g:loaded_python3_provider = empty(s:prog) ? 0 : 2
call v:lua.require'vim.provider.python'.start()