robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

Sathya Pramodhfix(provider): misleading :checkhealth if user sets g:loaded_python3_provider=1 #32696b4906577c9

master
457 B15 linesraw
1if exists('g:loaded_python3_provider')
2  finish
3endif
4
5function! provider#python3#Call(method, args) abort
6  return v:lua.vim.provider.python.call(a:method, a:args)
7endfunction
8
9function! provider#python3#Require(host) abort
10  return v:lua.vim.provider.python.require(a:host)
11endfunction
12
13let s:prog = v:lua.vim.provider.python.detect_by_module('neovim')
14let g:loaded_python3_provider = empty(s:prog) ? 0 : 2
15call v:lua.require'vim.provider.python'.start()