+14
-8
lines changedFilter options
+14
-8
lines changed Original file line number Diff line number Diff line change
@@ -312,7 +312,10 @@ function! s:check_python() abort
312
312
313
313
" No Python executable could `import neovim`, or host_prog_var was used.
314
314
if !empty(pythonx_errors)
315
-
call health#report_error('Python provider error:', pythonx_errors)
315
+
call health#report_warn(pythonx_errors, ["See :help provider-python for more information.",
316
+
\ "You may disable this provider (and warning) by adding `let g:loaded_python3_provider = 0` to your init.vim"
317
+
\])
318
+
"If you wish to disable the Python provider (and this warning), then "
316
319
317
320
elseif !empty(pyname) && empty(python_exe)
318
321
if !exists('g:'.host_prog_var)
@@ -573,7 +576,8 @@ function! s:check_ruby() abort
573
576
\ ['Run `gem install neovim` to ensure the neovim RubyGem is installed.',
574
577
\ 'Run `gem environment` to ensure the gem bin directory is in $PATH.',
575
578
\ 'If you are using rvm/rbenv/chruby, try "rehashing".',
576
-
\ 'See :help g:ruby_host_prog for non-standard gem installations.'])
579
+
\ 'See :help g:ruby_host_prog for non-standard gem installations.',
580
+
\ "You may disable this provider (and warning) by adding `let g:loaded_ruby_provider = 0` to your init.vim"])
577
581
return
578
582
endif
579
583
call health#report_info('Host: '. host)
@@ -634,7 +638,8 @@ function! s:check_node() abort
634
638
if empty(host)
635
639
call health#report_warn('Missing "neovim" npm (or yarn) package.',
636
640
\ ['Run in shell: npm install -g neovim',
637
-
\ 'Run in shell (if you use yarn): yarn global add neovim'])
641
+
\ 'Run in shell (if you use yarn): yarn global add neovim',
642
+
\ "You may disable this provider (and warning) by adding `let g:loaded_node_provider = 0` to your init.vim"])
638
643
return
639
644
endif
640
645
call health#report_info('Nvim node.js host: '. host)
@@ -683,10 +688,11 @@ function! s:check_perl() abort
683
688
return
684
689
endif
685
690
686
-
let [perl_exec, perl_errors] = provider#perl#Detect()
691
+
let [perl_exec, perl_warnings] = provider#perl#Detect()
687
692
if empty(perl_exec)
688
-
if !empty(perl_errors)
689
-
call health#report_error('perl provider error:', perl_errors)
693
+
if !empty(perl_warnings)
694
+
call health#report_warn(perl_warnings,["See :help provider-perl for more information." ,
695
+
\ "You may disable this provider (and warning) by adding `let g:loaded_node_provider = 0` to your init.vim"])
690
696
else
691
697
call health#report_warn('No usable perl executable found')
692
698
endif
Original file line number Diff line number Diff line change
@@ -56,7 +56,7 @@ function! provider#pythonx#DetectByModule(module, major_version) abort
56
56
endfor
57
57
58
58
" No suitable Python executable found.
59
-
return ['', 'provider/pythonx: Could not load Python '.a:major_version.":\n".join(errors, "\n")]
59
+
return ['', 'Could not load Python '.a:major_version.":\n".join(errors, "\n")]
60
60
endfunction
61
61
62
62
" Returns array: [prog_exitcode, prog_version]
@@ -99,7 +99,7 @@ function! provider#pythonx#CheckForModule(prog, module, major_version) abort
99
99
endif
100
100
101
101
if prog_exitcode == 2
102
-
return [0, prog_path.' does not have the "' . a:module . '" module. :help provider-python']
102
+
return [0, prog_path.' does not have the "' . a:module . '" module.']
103
103
elseif prog_exitcode == 127
104
104
" This can happen with pyenv's shims.
105
105
return [0, prog_path . ' does not exist: ' . prog_version]
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4